From cc360be7c1f72b3440b2eb8af0ca7c22606ffba1 Mon Sep 17 00:00:00 2001 From: xtex Date: Thu, 27 Jul 2023 17:34:04 +0800 Subject: [PATCH] fix: causality anchor effect --- .../kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt | 2 +- 1 file changed, 1 insertion(+), 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 f42e8d3..e405189 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt @@ -166,7 +166,7 @@ class ProjectedPersonEntity(entityType: EntityType, level: Le override fun tick() { super.tick() if (tickCount % 20 == 0) { - if (!checkProjectionEffect()) { + if (!checkProjectionEffect() && !CausalityAnchor.checkEffect(level(), blockPosition())) { dropEquipment() remove(RemovalReason.KILLED) }