fix: causality anchor effect

This commit is contained in:
xtex 2023-07-27 17:34:04 +08:00
parent 6dddd60405
commit cc360be7c1
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -166,7 +166,7 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
override fun tick() {
super.tick()
if (tickCount % 20 == 0) {
if (!checkProjectionEffect()) {
if (!checkProjectionEffect() && !CausalityAnchor.checkEffect(level(), blockPosition())) {
dropEquipment()
remove(RemovalReason.KILLED)
}