Skip to content

Commit

Permalink
Sanity check in inventorymenu
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jan 25, 2024
1 parent 6c2c19c commit 7714672
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/citizensnpcs/api/gui/InventoryMenu.java
Expand Up @@ -368,6 +368,8 @@ private InventoryView openInventory(HumanEntity player, Inventory inventory, Str
} else {
view = player.openInventory(inventory);
}
if (view == null)
throw new RuntimeException("null inventory opened " + player + " " + inventory + " " + title);
return view;
}

Expand Down

0 comments on commit 7714672

Please sign in to comment.