From 048802fcb6c17f8e575a9e2ce4084164d9fd131c Mon Sep 17 00:00:00 2001 From: aria1th <35677394+aria1th@users.noreply.github.com> Date: Thu, 28 Dec 2023 00:30:17 +0900 Subject: [PATCH] fix extreme case --- .../io/github/eatmyvenom/litematicin/utils/InventoryUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/eatmyvenom/litematicin/utils/InventoryUtils.java b/src/main/java/io/github/eatmyvenom/litematicin/utils/InventoryUtils.java index 920c3777..430a3722 100644 --- a/src/main/java/io/github/eatmyvenom/litematicin/utils/InventoryUtils.java +++ b/src/main/java/io/github/eatmyvenom/litematicin/utils/InventoryUtils.java @@ -62,7 +62,7 @@ public static void tick() { if (!usedSlots.containsKey(i)) { continue; } - if (slotCounts.get(i) <= 0) { + if (slotCounts.getOrDefault(i,0) <= 0) { usedSlots.remove(i); slotCounts.remove(i); }