From 5fadd5ea18636e9b0ac13c1f314d3be1f38a579b Mon Sep 17 00:00:00 2001 From: Paul Schifferer Date: Thu, 28 Nov 2024 07:08:24 -0800 Subject: [PATCH] #17 Deleting item in the queue manager persists --- .../crafttracker/common/manager/CraftingQueueManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sweetrpg/crafttracker/common/manager/CraftingQueueManager.java b/src/main/java/com/sweetrpg/crafttracker/common/manager/CraftingQueueManager.java index 6166200..aac5d04 100644 --- a/src/main/java/com/sweetrpg/crafttracker/common/manager/CraftingQueueManager.java +++ b/src/main/java/com/sweetrpg/crafttracker/common/manager/CraftingQueueManager.java @@ -167,6 +167,10 @@ public void removeProduct(Player player, ResourceLocation itemId) { CraftTracker.LOGGER.debug("CraftingQueueManager#removeProduct: {}", itemId); this.endProducts.remove(itemId); + + computeAll(); + + this.save(player); } public void removeProduct(Player player, ResourceLocation itemId, int quantity) {