fix: all projected person are removed

This commit is contained in:
xtex 2023-07-02 17:53:25 +08:00
parent c3e8a211ad
commit 7cd6fb11a7
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -119,7 +119,7 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
} }
private fun checkProjectionEffect() = private fun checkProjectionEffect() =
Projector.findNearbyProjections(level(), blockPosition(), SwarmProjection.effect.get()).isEmpty() Projector.findNearbyProjections(level(), blockPosition(), SwarmProjection.effect.get()).isNotEmpty()
override fun checkDespawn() { override fun checkDespawn() {
super.checkDespawn() super.checkDespawn()