From 4796f7042d387f9419281d62033291fbe3148a95 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 12 May 2024 11:09:45 -0400 Subject: [PATCH] Bugfix in update_value --- src/engine/db/handlers/dbItemHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index 008ca9e9..339b38ad 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -554,7 +554,7 @@ public class dbItemHandler extends dbHandlerBase { // Write 0 if we will not modify the value from template - if (item.value == item.template.item_value) + if (value == item.template.item_value) value = 0; try (Connection connection = DbManager.getConnection();