From fe54085cc64a1b00801fe40eff8584faa25c6b7d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Feb 2024 02:51:26 -0500 Subject: [PATCH] Handler easier to debug. --- src/engine/db/handlers/dbItemHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index 2367563c..dafbf1de 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -176,10 +176,14 @@ public class dbItemHandler extends dbHandlerBase { ResultSet rs = preparedStatement.executeQuery(); while (rs.next()) { + int templateID = rs.getInt("id"); + + if (templateID == 175180) + templateID = 175181; JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template")); ItemTemplate itemTemplate = new ItemTemplate(jsonObject); - ItemTemplate.itemTemplates.put(rs.getInt("id"), itemTemplate); + ItemTemplate.itemTemplates.put(templateID, itemTemplate); } } catch (Exception e) {