Skip to content

Commit

Permalink
fix: try to fix missing menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Feb 20, 2024
1 parent 1b5f241 commit 22b4c94
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ public void updateMenu(Block b, BlockMenu inv, boolean force, int capacity) {
String hasHolo = StorageCacheUtils.getData(b.getLocation(), "holo");
int stored = getStored(b);
String itemName = "";
ItemStack item = inv.getItemInSlot(DISPLAY_SLOT);
if (item == null) {
return;
}

String storedPercent = doubleRoundAndFade((double) stored / (double) capacity * 100);
String storedStacks =
Expand Down

0 comments on commit 22b4c94

Please sign in to comment.