v1.2.0: fixed a crash caused by non null items with null names

This commit is contained in:
Evan Debenham 2022-02-09 13:20:50 -05:00
parent 7005459acf
commit 51ac563199

View File

@ -276,7 +276,10 @@ public class ItemSlot extends Button {
@Override @Override
protected String hoverText() { protected String hoverText() {
if (item != null) return Messages.titleCase(item.name()); if (item != null && item.name() != null) {
else return super.hoverText(); return Messages.titleCase(item.name());
} else {
return super.hoverText();
}
} }
} }