mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix intersect
This commit is contained in:
parent
8a5147c994
commit
eb0f7379ea
@ -179,7 +179,7 @@ public class EntityProjectile extends Entity {
|
||||
continue;
|
||||
}
|
||||
Optional<Entity> victimOptional = entities.stream()
|
||||
.filter(entity -> entity.getBoundingBox().intersect(pos.getX(), pos.getY(), pos.getZ()))
|
||||
.filter(entity -> entity.getBoundingBox().intersect(pos))
|
||||
.findAny();
|
||||
if (victimOptional.isPresent()) {
|
||||
LivingEntity victim = (LivingEntity) victimOptional.get();
|
||||
|
Loading…
Reference in New Issue
Block a user