fix: disable despawn for swarm
This commit is contained in:
parent
3a4ad875e2
commit
00ce17cb21
@ -177,7 +177,8 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
|
||||
Projector.findNearbyProjections(level(), blockPosition(), SwarmProjection.effect.get()).isNotEmpty()
|
||||
|
||||
override fun checkDespawn() {
|
||||
super.checkDespawn()
|
||||
// no despawn
|
||||
// super.checkDespawn()
|
||||
if (!checkProjectionEffect() && !CausalityAnchor.checkEffect(level(), blockPosition())) {
|
||||
dropEquipment()
|
||||
remove(RemovalReason.KILLED)
|
||||
|
Loading…
Reference in New Issue
Block a user