mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Fix bounding box issue causing bindings to fail. Closes #234
This commit is contained in:
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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user