mirror of
https://github.com/OMGeeky/ItemChecklist.git
synced 2026-02-14 23:25:07 +01:00
Fix issue with MagicStorage and its recursive crafting feature causing a lot of pickups that aren't actually real
This commit is contained in:
@@ -33,6 +33,9 @@ namespace ItemChecklist
|
||||
// TODO, unloaded items, check against??
|
||||
internal void ItemReceived(Item item)
|
||||
{
|
||||
if ( MagicStorageIntegration.Enabled && MagicStorageIntegration.IsSimulatingCrafts())
|
||||
return;
|
||||
|
||||
var itemChecklistPlayer = Main.LocalPlayer.GetModPlayer<ItemChecklistPlayer>();
|
||||
if (!itemChecklistPlayer.foundItem[item.type] && itemChecklistPlayer.findableItems[item.type])
|
||||
{
|
||||
|
||||
@@ -122,5 +122,11 @@ namespace ItemChecklist
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
internal static bool IsSimulatingCrafts()
|
||||
{
|
||||
return CraftingGUI.SimulatingCrafts;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user