Fix duplicate collision not preventing lens collisions, closes #3282

This commit is contained in:
Hubry committed 2020-05-06 15:31:35 +02:00
1 parent 49531397ed
commit 360553b42c
1 file changed
+4 -1
@@ -528,8 +528,11 @@ public class EntityManaBurst extends ThrowableEntity implements IManaBurst {
BlockPos pos = null;
boolean dead = false;
if (rtr.getType() == RayTraceResult.Type.BLOCK && !((BlockRayTraceResult) rtr).getPos().equals(lastCollision)) {
if (rtr.getType() == RayTraceResult.Type.BLOCK) {
pos = ((BlockRayTraceResult) rtr).getPos();
if (pos.equals(lastCollision)) {
return;
}
lastCollision = pos.toImmutable();
TileEntity tile = world.getTileEntity(pos);
BlockState state = world.getBlockState(pos);