Fixed crafting order of decor bricks so polished is no longer a lonely boi (#1221)

This commit is contained in:
Nicholas Ignoffo 2018-02-13 16:57:21 -08:00
parent fa59e7000a
commit 3fb708d2be
11 changed files with 96 additions and 6 deletions

View file

@ -23,7 +23,7 @@ public class ItemBlockEnum<E extends Enum<E> & IStringSerializable> extends Item
@Override
public String getUnlocalizedName(ItemStack stack) {
return getBlock().getUnlocalizedName() + getBlock().getTypes()[MathHelper.clamp(stack.getItemDamage(), 0, 15)].getName();
return getBlock().getUnlocalizedName() + getBlock().getTypes()[MathHelper.clamp(stack.getItemDamage(), 0, getBlock().getTypes().length - 1)].getName();
}
@Override