Back-fill support added.
This commit is contained in:
1 parent
eca71fa685
commit
b0c43a5258
1 file changed
+7
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user