Fix bug with Sky Stone Block Chest not rendering Block Version After World Re-Load.

This commit is contained in:
AlgorithmX2 2014-03-01 01:39:46 -06:00
parent 27b30588a6
commit fb6bb1a964

View file

@ -73,7 +73,7 @@ public class RenderBlockSkyChest extends BaseBlockRender
ResourceLocation loc;
if ( tile.blockMetadata == 1 )
if ( tile.getWorldObj().getBlockMetadata( tile.xCoord, tile.yCoord, tile.zCoord ) == 1 )
loc = new ResourceLocation( "appliedenergistics2", "textures/models/skyblockchest.png" );
else
loc = new ResourceLocation( "appliedenergistics2", "textures/models/skychest.png" );