From d8cf08eb25a75d577dc3bdd8a2673e1a9cbb379a Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 8 Feb 2022 20:19:05 +0000 Subject: [PATCH] Fixed mob properties not being set --- .../src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt index dcab27f..a893ed0 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt @@ -280,6 +280,10 @@ class EcoBoss( fun spawn(location: Location): LivingEcoBoss { val mob = mob.spawn(location) as LivingEntity + mob.isPersistent = true + mob.isCustomNameVisible = true + mob.removeWhenFarAway = false + val boss = LivingEcoBoss( plugin, mob.uniqueId,