From b0c43a52587ccaef7a9348afaf69152274280e8f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 22 Mar 2024 13:06:30 -0400 Subject: [PATCH] Back-fill support added. --- src/engine/objects/Item.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 3c334f4a..15090ac7 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -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())