diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/HurtTrigger.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/HurtTrigger.kt index d9bac01f2..b884fb89a 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/HurtTrigger.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/HurtTrigger.kt @@ -27,7 +27,7 @@ class HurtTrigger(id: ResourceLocation) : MCriterionTrigger = Optional.empty()) : AbstractInstance(player) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/SingletonTrigger.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/SingletonTrigger.kt index 099f1d30a..8839b95df 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/SingletonTrigger.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/server/triggers/SingletonTrigger.kt @@ -11,7 +11,7 @@ class SingletonTrigger(id: ResourceLocation) : MCriterionTrigger = RecordCodecBuilder.create { it.group( ContextAwarePredicate.CODEC.optionalFieldOf("player").forGetter(Instance::playerPredicate) - ).apply(it, SingletonTrigger::Instance) + ).apply(it, ::Instance) } val empty = Instance()