From bf990a886c70a629c9df37f163bd542fe95e3ec9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 22 Mar 2024 14:36:44 -0400 Subject: [PATCH] Ignoring current ident flag when back-filling --- src/engine/db/handlers/dbItemHandler.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/db/handlers/dbItemHandler.java b/src/engine/db/handlers/dbItemHandler.java index 17468c8d..759b31c5 100644 --- a/src/engine/db/handlers/dbItemHandler.java +++ b/src/engine/db/handlers/dbItemHandler.java @@ -512,11 +512,6 @@ public class dbItemHandler extends dbHandlerBase { EnumSet item_flags = EnumSet.noneOf(Enum.ItemFlags.class); item_flags.addAll(ItemTemplate.templates.get(templateID).item_flags); - int identified = rs.getInt("old_flags"); - - if (identified != 0) - item_flags.add(Enum.ItemFlags.Identified); - UPDATE_FLAGS(item_uuid, item_flags); } @@ -536,6 +531,8 @@ public class dbItemHandler extends dbHandlerBase { for (Enum.ItemFlags itemflag : item.flags) flagString += itemflag.toString() + ";"; + flagString = flagString.replaceAll(";$", ""); + preparedStatement.setString(1, flagString); preparedStatement.setLong(2, item.getObjectUUID());