mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix redirect lens pointing at 0,0,0, closes #3167
This commit is contained in:
1 parent
607c581970
commit
d49fba9abc
1 file changed
+1
-1
@@ -43,7 +43,7 @@ public class LensRedirect extends Lens {
|
||||
VoxelShape collideShape = entity.world.getBlockState(coords).getCollisionShape(entity.world, coords);
|
||||
if(collideShape.isEmpty())
|
||||
axis = new AxisAlignedBB(coords, coords.add(1, 1, 1));
|
||||
else axis = collideShape.getBoundingBox(); // todo 1.13 more granular collisions?
|
||||
else axis = collideShape.getBoundingBox().offset(coords); // todo 1.13 more granular collisions?
|
||||
|
||||
if(!sourceVec.isInside(axis))
|
||||
sourceVec = new Vector3(axis.minX + (axis.maxX - axis.minX) / 2, axis.minY + (axis.maxY - axis.minY) / 2, axis.minZ + (axis.maxZ - axis.minZ) / 2);
|
||||
|
||||
Reference in new issue
Block a user