From 616d92b3f1654b0f11a6d9021537dfa1a6d1350d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 27 Dec 2013 20:25:17 +1100 Subject: [PATCH] Fixed the metadata mixup with stone formations --- .../common/itemblocks/ItemBlockStoneFormations.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; }