Fix texture display (not actually important since renderer works)
This commit is contained in:
parent
6d505961a3
commit
403089c380
|
@ -56,7 +56,8 @@ public class BlockIronChest extends BlockContainer implements ITextureProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBlockTexture(IBlockAccess worldAccess, int i, int j, int k, int l) {
|
public int getBlockTexture(IBlockAccess worldAccess, int i, int j, int k, int l) {
|
||||||
IronChestType type=IronChestType.values()[l];
|
int meta=worldAccess.getBlockMetadata(i, j, k);
|
||||||
|
IronChestType type=IronChestType.values()[meta];
|
||||||
TileEntity te = worldAccess.getBlockTileEntity(i, j, k);
|
TileEntity te = worldAccess.getBlockTileEntity(i, j, k);
|
||||||
TileEntityIronChest icte=null;
|
TileEntityIronChest icte=null;
|
||||||
if (te!=null && te instanceof TileEntityIronChest) {
|
if (te!=null && te instanceof TileEntityIronChest) {
|
||||||
|
|
Loading…
Reference in New Issue