mirror of
https://github.com/OMGeeky/ItemChecklist.git
synced 2026-01-01 01:00:14 +01:00
Trying to save an unloaded item caused a crash
This commit is contained in:
@@ -144,7 +144,7 @@ namespace ItemChecklist
|
||||
public override void SaveData(TagCompound tag)
|
||||
{
|
||||
// sanitize? should be possible to add item already seen.
|
||||
tag["FoundItems"] = foundItems.Select(ItemIO.Save).ToList();
|
||||
tag["FoundItems"] = foundItems.Where(item => item.Name != "Unloaded Item").Select(ItemIO.Save).ToList();
|
||||
//tag["SortMode"] = (int)ItemChecklistUI.sortMode;
|
||||
tag["Announce"] = ItemChecklistUI.announce; // Not saving default, saving last used....good thing?
|
||||
tag["CollectChestItems"] = ItemChecklistUI.collectChestItems;
|
||||
|
||||
Reference in New Issue
Block a user