Fixed the metadata mixup with stone formations

This commit is contained in:
Adubbz 2013-12-27 20:25:17 +11:00
parent 767ed0fb1d
commit 616d92b3f1

View file

@ -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;
}