mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-26 06:53:02 +00:00
Set block based on isolated state before rendering. Tentatively fixes #35
This commit is contained in:
1 parent
0498de0d04
commit
3eaf0c009c
1 file changed
+1
+1
@@ -276,6 +276,7 @@ public class TileEntityDrawersRenderer extends TileEntitySpecialRenderer
|
||||
|
||||
if (blockType) {
|
||||
Block itemBlock = Block.getBlockFromItem(itemStack.getItem());
|
||||
itemBlock.setBlockBoundsBasedOnState(tile.getWorldObj(), 0, 0, 0);
|
||||
itemBlock.setBlockBoundsForItemRender();
|
||||
|
||||
double zDepth = 1 - itemBlock.getBlockBoundsMaxZ();
|
||||
|
||||
Reference in new issue
Block a user