fix graphical glitch when breaking blocks

This commit is contained in:
octarine-noise
2014-08-06 15:50:26 +02:00
parent ffa8dd724e
commit 6623bee39f
7 changed files with 47 additions and 1 deletions

View File

@@ -35,9 +35,14 @@ public class RenderBlockBetterCactus extends FakeRenderBlockAOBase implements IR
// store world for later use
blockAccess = world;
// use original renderer for block breaking overlay
if (renderer.hasOverrideBlockTexture()) {
renderer.renderBlockCactus(block, x, y, z);
return true;
}
// render cactus center
setPassCounters(1);
setRenderBoundsFromBlock(block);
Double3 blockCenter = new Double3(x + 0.5, y + 0.5, z + 0.5);
renderStandardBlock(block, x, y, z);