aedenthorn / ValheimMods

Other
148 stars 104 forks source link

Fix for Crafting Items with recipe requirements more than the max stack size #73

Closed virtualbjorn closed 2 years ago

virtualbjorn commented 2 years ago

This fix is for recipes with non-stackable item requirements and for recipes that has a requirement set to more than the max stack size (e.g crafting a club that needs 75 wood to craft with a stack size of 50)

AzumattDev commented 2 years ago

When testing this fix, it works just fine. Though, you should add the same code fix for your redundant code found here: github.com/aedenthorn/ValheimMods/blob/f2a687b0765f1f70dd1dd475ec63f1dd53794005/CraftFromContainers/BepInExPlugin.cs#L1055-L1056

Otherwise, when trying to pull things from a chest into your inventory, you'd have the same issue.

aedenthorn commented 2 years ago

ty