Browse Source

Back-fill support added.

combat-2
MagicBot 8 months ago
parent
commit
b0c43a5258
  1. 7
      src/engine/objects/Item.java

7
src/engine/objects/Item.java

@ -154,6 +154,13 @@ public class Item extends AbstractWorldObject { @@ -154,6 +154,13 @@ public class Item extends AbstractWorldObject {
for (String itemFlag : flagString.split(";"))
this.flags.add(Enum.ItemFlags.valueOf(itemFlag));
// Backfill support
int oldFlags = rs.getInt("old_flags");
if (oldFlags != 0)
this.flags.add(ItemFlags.Identified);
// Empty flags should default to template
if (this.flags.isEmpty())

Loading…
Cancel
Save