Setting containertype.

This commit is contained in:
2024-04-24 13:13:48 -04:00
parent 1edd4d681b
commit 6a17f93e41
+6 -3
View File
@@ -284,19 +284,22 @@ public enum ForgeManager implements Runnable {
// Identify completed items
virutalItem.flags.add(mbEnums.ItemFlags.Identified);
virutalItem.containerType = mbEnums.ItemContainerType.INVENTORY;
// Persist item
Item completedItem = DbManager.ItemQueries.PERSIST(virutalItem);
// Apply Item effects for Prefix and Suffix tokens
// Copy Prefix and Suffix tokens from virtual item.
completedItem.prefixToken = virutalItem.prefixToken;
completedItem.suffixToken = virutalItem.suffixToken;
// Add effects to these tokens. Writes to disk.
ItemManager.applyItemEffects(completedItem);
// add to the vendor inventory
// Add to the vendor inventory
workOrder.vendor.charItemManager.addItemToInventory(completedItem);
@@ -308,7 +311,7 @@ public enum ForgeManager implements Runnable {
toRemove.add(virutalItem);
}
// Remove the negativeID virtual item from all collections
// Remove the virtual item from all collections
for (Item virtualItem : toRemove) {