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