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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user