Skip to content

Commit

Permalink
Fix GregTech NPE (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Jun 1, 2024
1 parent 849f609 commit 430a509
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void transferTo(AbstractContainerMenu other, CraftHumanEntity player) {

public Component getTitle() {
if (this.title == null) {
if (this.menuType != null) {
if (this.menuType != null && BuiltInRegistries.MENU.getKey(this.menuType) != null) {
var key = BuiltInRegistries.MENU.getKey(this.menuType);
return Component.translatable(key.toString());
} else {
Expand Down

0 comments on commit 430a509

Please sign in to comment.