fix: all projected person are removed

This commit is contained in:
2023-07-02 17:53:25 +08:00
parent c3e8a211ad
commit 7cd6fb11a7

View File

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