Fixed missing copperIronUpgrade texture and ItemChestChanger breaking tile

This commit is contained in:
LatvianModder 2016-05-19 13:49:36 +03:00
parent 96ecbabcb4
commit 158ad6d334
3 changed files with 7 additions and 2 deletions

View File

@ -161,7 +161,7 @@ public enum IronChestType implements IStringSerializable
public boolean isValidForCreativeMode() public boolean isValidForCreativeMode()
{ {
return true; return this != WOOD;
} }
public boolean isExplosionResistant() public boolean isExplosionResistant()

View File

@ -108,7 +108,7 @@ public class ItemChestChanger extends Item
worldIn.removeTileEntity(pos); worldIn.removeTileEntity(pos);
worldIn.setBlockToAir(pos); worldIn.setBlockToAir(pos);
IBlockState iblockstate = IronChest.ironChestBlock.getStateFromMeta(newchest.getType().ordinal()); IBlockState iblockstate = IronChest.ironChestBlock.getDefaultState().withProperty(BlockIronChest.VARIANT_PROP, type.target);
worldIn.setTileEntity(pos, newchest); worldIn.setTileEntity(pos, newchest);
worldIn.setBlockState(pos, iblockstate, 3); worldIn.setBlockState(pos, iblockstate, 3);

View File

@ -50,6 +50,11 @@
"textures": { "textures": {
"layer0": "ironchest:items/woodIronUpgrade" "layer0": "ironchest:items/woodIronUpgrade"
} }
},
"copperironupgrade": {
"textures": {
"layer0": "ironchest:items/copperIronUpgrade"
}
} }
} }
} }