Fix WAILA not displaying quartz pillar block name when placed on its side (#97)

This commit is contained in:
Matthew Bentham authored and GitHub committed 2025-08-22 04:07:24 -05:00
1 parent 96521a399b
commit d3f4b99d23
1 file changed
+2 -1
@@ -28,7 +28,8 @@ public class ItemBlockSpecialQuartz extends ItemMultiTexture {
@Override
public String getUnlocalizedName(ItemStack par1ItemStack) {
return par1ItemStack.getItemDamage() >= 3 ? "" : ((BlockSpecialQuartz) field_150939_a).getNames()[par1ItemStack.getItemDamage()];
String[] names = ((BlockSpecialQuartz) field_150939_a).getNames();
return par1ItemStack.getItemDamage() >= names.length ? names[names.length - 1] : names[par1ItemStack.getItemDamage()];
}
@Override