mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
Fix all ISBR always returning true even when not rendering anything #1308
This commit is contained in:
1 parent
752930af7b
commit
724aa45b94
11 files changed
+23
-13
No files matched your search
@@ -41,7 +41,7 @@ public class SmelteryRender implements ISimpleBlockRenderingHandler
|
||||
|
||||
public boolean renderSmeltery (IBlockAccess world, int x, int y, int z, Block block, int modelID, RenderBlocks renderer)
|
||||
{
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
boolean ret = renderer.renderStandardBlock(block, x, y, z);
|
||||
SmelteryLogic logic = (SmelteryLogic) world.getTileEntity(x, y, z);
|
||||
if (logic.validStructure)
|
||||
{
|
||||
@@ -102,10 +102,11 @@ public class SmelteryRender implements ISimpleBlockRenderingHandler
|
||||
yBase++;
|
||||
liquidBase = 0;
|
||||
}
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void renderLayer (SmelteryLogic logic, int start, CoordTuple from, CoordTuple to, int posY, RenderBlocks renderer, IBlockAccess world)
|
||||
|
||||
Reference in new issue
Block a user