fix: disable despawn for swarm

This commit is contained in:
xtex 2023-08-11 15:44:22 +08:00
parent 3a4ad875e2
commit 00ce17cb21
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -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)