diff --git a/src/main/java/biomesoplenty/common/itemblocks/ItemBlockStoneFormations.java b/src/main/java/biomesoplenty/common/itemblocks/ItemBlockStoneFormations.java index 6e930d530..8c6732c99 100644 --- a/src/main/java/biomesoplenty/common/itemblocks/ItemBlockStoneFormations.java +++ b/src/main/java/biomesoplenty/common/itemblocks/ItemBlockStoneFormations.java @@ -20,12 +20,20 @@ public class ItemBlockStoneFormations extends ItemBlock this.setMaxDamage(0); this.setHasSubtypes(true); } + + @Override + public int getMetadata(int meta) + { + return meta & 15; + } + @Override public String getUnlocalizedName(ItemStack itemStack) { int meta = itemStack.getItemDamage(); - if (meta < 0 || meta >= forms.length) { + if (meta < 0 || meta >= forms.length) + { meta = 0; }