Fix bounding box issue causing bindings to fail. Closes #234

This commit is contained in:
Vincent Lee committed 2016-04-14 21:39:43 -05:00
1 parent 45dda5f19c
commit d33590f7ca
3 files changed
+3 -2

No files matched your search

@@ -676,7 +676,7 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector,
Vector3 thisVec = Vector3.fromTileEntityCenter(this);
Vector3 blockVec = new Vector3(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5);
AxisAlignedBB axis = player.worldObj.getBlockState(pos).getCollisionBoundingBox(player.worldObj, pos);
AxisAlignedBB axis = player.worldObj.getBlockState(pos).getCollisionBoundingBox(player.worldObj, pos).offset(pos);
if(axis == null)
axis = new AxisAlignedBB(pos, pos.add(1, 1, 1));
@@ -34,7 +34,7 @@ public class LensRedirect extends Lens {
Vector3 tileVec = Vector3.fromTileEntityCenter(tile);
Vector3 sourceVec = new Vector3(coords.getX() + 0.5, coords.getY() + 0.5, coords.getZ() + 0.5);
AxisAlignedBB axis = entity.worldObj.getBlockState(coords).getCollisionBoundingBox(entity.worldObj, coords);
AxisAlignedBB axis = entity.worldObj.getBlockState(coords).getCollisionBoundingBox(entity.worldObj, coords).offset(coords);
if(axis == null)
axis = new AxisAlignedBB(coords, coords.add(1, 1, 1));