mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user