Fix all ISBR always returning true even when not rendering anything #1308

This commit is contained in:
Bernhard Bonigl committed 2015-01-04 23:49:08 +01:00
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)