abearcodes / Valheim

MIT License
14 stars 14 forks source link

Infinite materials returned from recycling #76

Open stabbthehuman opened 2 years ago

stabbthehuman commented 2 years ago

Mod: Crafting With Containers / Simple Recycling

Seems like there is some kind of interaction with the Terraheim mod that causes infinite materials to be returned from an item:

I went to recycle a "Crude Bow" which should have yeilded 3 wood and 3 leather scraps, but it filled my inventory with stacks of both.

Here is the bepinex log that seems to indicate teh conflict is related to terraheim:

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: Terraheim.Patches.CraftingPatch.AddItemPostfix (ItemDrop+ItemData& result) (at <7bbaa1818a6a412e925b79f46edff69c>:0) (wrapper dynamic-method) Inventory.DMD(Inventory,string,int,int,int,long,string) ABearCodes.Valheim.SimpleRecycling.Recycling.Recycler.DoInventoryChanges (ABearCodes.Valheim.SimpleRecycling.Recycling.RecyclingAnalysisContext analysisContext, Inventory inventory, Player player) (at :0) ABearCodes.Valheim.SimpleRecycling.UI.StationRecyclingTabHolder.UpdateRecipe (Player player, System.Single dt) (at :0) ABearCodes.Valheim.SimpleRecycling.UI.InventoryGuiPatches.UpdateRecipeOnRecyclingTab (InventoryGui instance, Player player, System.Single dt) (at :0) (wrapper dynamic-method) InventoryGui.DMD(InventoryGui,Player,single) InventoryGui.Update () (at <843a49d5cb48439fa5a62a7bcd81c2a9>:0)