9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-22 16:39:25 +00:00

Fixed mob properties not being set

This commit is contained in:
Auxilor
2022-02-08 20:19:05 +00:00
parent a94c96e5d4
commit d8cf08eb25

View File

@@ -280,6 +280,10 @@ class EcoBoss(
fun spawn(location: Location): LivingEcoBoss { fun spawn(location: Location): LivingEcoBoss {
val mob = mob.spawn(location) as LivingEntity val mob = mob.spawn(location) as LivingEntity
mob.isPersistent = true
mob.isCustomNameVisible = true
mob.removeWhenFarAway = false
val boss = LivingEcoBoss( val boss = LivingEcoBoss(
plugin, plugin,
mob.uniqueId, mob.uniqueId,