aedenthorn / ValheimMods

Other
148 stars 104 forks source link

Adventure Backpacks Compatibility #94

Open Vapok opened 1 year ago

Vapok commented 1 year ago

Hi @aedenthorn!

I had a request on the Adventure Backpacks to build in compatibility with mods like Craft from Containers. The newest update of Adventure Backpacks now adds in this capability for the equipped backpack, but to do this, I applied a container on to the Player(Clone).

But this means that there isn't a Piece component on the Parent.

If you remove this check from NearbyContainers, I suspect that this will work with my changes in Adventure Backpacks.

https://github.com/aedenthorn/ValheimMods/blob/2cf58ae907deee1e026c36e778c7dcabd759702d/CraftFromContainers/BepInExPlugin.cs#L164C19-L164C19

Let me know what you think. Thanks @aedenthorn!