|
|
@ -512,11 +512,6 @@ public class dbItemHandler extends dbHandlerBase { |
|
|
|
EnumSet<Enum.ItemFlags> item_flags = EnumSet.noneOf(Enum.ItemFlags.class); |
|
|
|
EnumSet<Enum.ItemFlags> item_flags = EnumSet.noneOf(Enum.ItemFlags.class); |
|
|
|
item_flags.addAll(ItemTemplate.templates.get(templateID).item_flags); |
|
|
|
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); |
|
|
|
UPDATE_FLAGS(item_uuid, item_flags); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -536,6 +531,8 @@ public class dbItemHandler extends dbHandlerBase { |
|
|
|
for (Enum.ItemFlags itemflag : item.flags) |
|
|
|
for (Enum.ItemFlags itemflag : item.flags) |
|
|
|
flagString += itemflag.toString() + ";"; |
|
|
|
flagString += itemflag.toString() + ";"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flagString = flagString.replaceAll(";$", ""); |
|
|
|
|
|
|
|
|
|
|
|
preparedStatement.setString(1, flagString); |
|
|
|
preparedStatement.setString(1, flagString); |
|
|
|
preparedStatement.setLong(2, item.getObjectUUID()); |
|
|
|
preparedStatement.setLong(2, item.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
|
|