v1.2.0: fixed a crash caused by non null items with null names
This commit is contained in:
parent
7005459acf
commit
51ac563199
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user