This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent abda4a244b
commit 983ca22d97
65 files changed
+188 -305

No files matched your search

@@ -63,8 +63,8 @@ public class DiamondApple extends ItemFood {
/* Name override */
@Override
public String getUnlocalizedName(ItemStack itemstack) {
return "item.food." +
itemNames[
return "item.food."
+ itemNames[
(itemstack.getItemDamage() >= itemNames.length || itemstack.getItemDamage() < 0)
? (0)
: (itemstack.getItemDamage())];