mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix duplicate collision not preventing lens collisions, closes #3282
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user