mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2026-01-02 22:02:19 +00:00
Fixed effect load order
This commit is contained in:
@@ -16,15 +16,11 @@ abstract class Effect(
|
||||
) : SkillObject(id), Listener {
|
||||
protected val plugin: EcoSkillsPlugin = EcoSkillsPlugin.getInstance()
|
||||
|
||||
val key: NamespacedKey
|
||||
val uuid: UUID
|
||||
val key: NamespacedKey = plugin.namespacedKeyFactory.create(id)
|
||||
val uuid: UUID = UUID.nameUUIDFromBytes(id.toByteArray())
|
||||
lateinit var config: Config
|
||||
|
||||
init {
|
||||
update()
|
||||
uuid = UUID.nameUUIDFromBytes(id.toByteArray())
|
||||
key = plugin.namespacedKeyFactory.create(id)
|
||||
|
||||
finishLoading()
|
||||
}
|
||||
|
||||
@@ -32,6 +28,7 @@ abstract class Effect(
|
||||
config = loadConfig()
|
||||
|
||||
Effects.registerNewEffect(this)
|
||||
update()
|
||||
}
|
||||
|
||||
open fun loadConfig(): Config {
|
||||
|
||||
Reference in New Issue
Block a user