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); }