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