Fix intersect

This commit is contained in:
TheMode 2021-07-07 01:45:20 +02:00
parent 8a5147c994
commit eb0f7379ea

View File

@ -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();