From ab2659d01f9682c59cd66a791a8ae5ea58517024 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 23 Mar 2024 18:55:18 -0400 Subject: [PATCH] Backfill code removed --- src/engine/db/handlers/dbItemHandler.java | 23 ----------------------- src/engine/server/world/WorldServer.java | 3 --- 2 files changed, 26 deletions(-) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index 759b31c5..df14509b 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -498,29 +498,6 @@ public class dbItemHandler extends dbHandlerBase { } } - public void UPDATE_ALL_FLAGS() { - - try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `obj_item`")) { - - ResultSet rs = preparedStatement.executeQuery(); - - while (rs.next()) { - - int item_uuid = rs.getInt("UID"); - int templateID = rs.getInt("item_itembaseID"); - EnumSet item_flags = EnumSet.noneOf(Enum.ItemFlags.class); - item_flags.addAll(ItemTemplate.templates.get(templateID).item_flags); - - UPDATE_FLAGS(item_uuid, item_flags); - } - - } catch (SQLException e) { - Logger.error(e); - } - - } - public boolean UPDATE_FLAGS(Item item) { try (Connection connection = DbManager.getConnection(); diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 411f0f2f..4043e974 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -343,9 +343,6 @@ public class WorldServer { Logger.info("Loading Item Templates"); DbManager.ItemQueries.LOAD_ITEM_TEMPLATES(); - Logger.info("Back filling item flags"); - DbManager.ItemQueries.UPDATE_ALL_FLAGS(); - Logger.info("Loading ItemBases"); ItemBase.loadAllItemBases();