From 00ce17cb21c54ad14939cd9bb4a6f24564e7b295 Mon Sep 17 00:00:00 2001 From: xtex Date: Fri, 11 Aug 2023 15:44:22 +0800 Subject: [PATCH] fix: disable despawn for swarm --- .../kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt index 7daa247..753016c 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt @@ -177,7 +177,8 @@ class ProjectedPersonEntity(entityType: EntityType, 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)