Fixed Array-Bounds-Check in ItemBlockFruit (should also fix NEI-Based crashes occurring since build 1142)

This commit is contained in:
Florian Wilkemeyer 2015-03-29 17:51:45 +02:00
parent c572546353
commit 8efcb9c075

View file

@ -41,7 +41,7 @@ public class ItemBlockFruit extends ItemBlock
meta = 0;
}
return super.getUnlocalizedName() + "." + plants[itemStack.getItemDamage()];
return super.getUnlocalizedName() + "." + plants[meta];
}
@Override