Fixed missing copperIronUpgrade texture and ItemChestChanger breaking tile
This commit is contained in:
parent
96ecbabcb4
commit
158ad6d334
|
@ -161,7 +161,7 @@ public enum IronChestType implements IStringSerializable
|
|||
|
||||
public boolean isValidForCreativeMode()
|
||||
{
|
||||
return true;
|
||||
return this != WOOD;
|
||||
}
|
||||
|
||||
public boolean isExplosionResistant()
|
||||
|
|
|
@ -108,7 +108,7 @@ public class ItemChestChanger extends Item
|
|||
worldIn.removeTileEntity(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.setBlockState(pos, iblockstate, 3);
|
||||
|
|
|
@ -50,6 +50,11 @@
|
|||
"textures": {
|
||||
"layer0": "ironchest:items/woodIronUpgrade"
|
||||
}
|
||||
},
|
||||
"copperironupgrade": {
|
||||
"textures": {
|
||||
"layer0": "ironchest:items/copperIronUpgrade"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue