Browse Source

Ignoring current ident flag when back-filling

combat-2
MagicBot 8 months ago
parent
commit
bf990a886c
  1. 7
      src/engine/db/handlers/dbItemHandler.java

7
src/engine/db/handlers/dbItemHandler.java

@ -512,11 +512,6 @@ public class dbItemHandler extends dbHandlerBase { @@ -512,11 +512,6 @@ public class dbItemHandler extends dbHandlerBase {
EnumSet<Enum.ItemFlags> 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 { @@ -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());

Loading…
Cancel
Save