Skip to content

Commit

Permalink
Fix crashes when all sides of a tank are covered #1362
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 24, 2015
1 parent 9d89ecd commit fb99258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/tconstruct/smeltery/model/TankRender.java
Expand Up @@ -47,8 +47,9 @@ public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block
Fluid fluid = liquid.getFluid();
BlockSkinRenderHelper.renderLiquidBlock(fluid.getStillIcon(), fluid.getStillIcon(), x, y, z, renderer, world, false, fluid.getColor(liquid));

renderer.setRenderBounds(0, 0.001, 0.001, 0.999, logic.getFluidAmountScaled(), 0.999);
return true;
}
return false;
}
//Block
else
Expand All @@ -60,9 +61,8 @@ public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block
renderer.renderStandardBlock(block, x, y + 1, z);
}
renderer.setRenderBounds(0, 0, 0, 1, 1, 1);
renderer.renderStandardBlock(block, x, y, z);
return renderer.renderStandardBlock(block, x, y, z);
}
return true;
}
return false;
}
Expand Down

0 comments on commit fb99258

Please sign in to comment.