From 08f8b02d22fb6555fbe6c882c2d86aedf4465840 Mon Sep 17 00:00:00 2001 From: Will FP Date: Tue, 26 Dec 2023 14:19:06 +0100 Subject: [PATCH] Fixed custom entity --- .../kotlin/com/willfp/ecomobs/mob/impl/ConfigDrivenEcoMob.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomobs/mob/impl/ConfigDrivenEcoMob.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomobs/mob/impl/ConfigDrivenEcoMob.kt index 219fb3a..6c519f4 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomobs/mob/impl/ConfigDrivenEcoMob.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomobs/mob/impl/ConfigDrivenEcoMob.kt @@ -309,7 +309,7 @@ internal class ConfigDrivenEcoMob( { (it as? Mob)?.ecoMob == this } ) { this.spawn(it, SpawnReason.COMMAND)!!.entity - } + }.apply { register() } /* ----------