Safer tile entity casting in SearedBlock.getCollisionBoundingBoxFromPool

Fixes SlimeKnights/TinkersConstruct#586 and SlimeKnights/TinkersConstruct#557

Conflicts:
	src/main/java/tconstruct/smeltery/blocks/SearedBlock.java
This commit is contained in:
squeek committed 2014-07-06 23:57:50 -07:00
1 parent 9b2784719b
commit 8075cb0b9e
1 file changed
+3 -2
@@ -320,9 +320,10 @@ public class SearedBlock extends InventoryBlock
}
else
{
FaucetLogic logic = (FaucetLogic) world.getTileEntity(x, y, z);
if (logic != null)
TileEntity tile = world.getBlockTileEntity(x, y, z);
if (tile != null && tile instanceof FaucetLogic)
{
FaucetLogic logic = (FaucetLogic) tile;
float xMin = 0.25F;
float xMax = 0.75F;
float zMin = 0.25F;