Browse Source

Backfill code removed

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

12
src/engine/objects/Item.java

@ -157,18 +157,6 @@ public class Item extends AbstractWorldObject { @@ -157,18 +157,6 @@ 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())
this.flags.addAll(this.template.item_flags);
this.dateToUpgrade = rs.getLong("item_dateToUpgrade");
this.value = rs.getInt("item_value");

Loading…
Cancel
Save