rolopogo / ValheimMods

MIT License
20 stars 24 forks source link

Incompatibility with NoToolDelay #19

Open ssorgatem opened 3 years ago

ssorgatem commented 3 years ago

With the last update the mod no longer works and prevents the building of any items

UPDATE: this only happens if the NoToolDelay (https://www.nexusmods.com/valheim/mods/674) mod is also enabled.

ssorgatem commented 3 years ago

This is the rror that gets spammed in the log:

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: Gizmo.Plugin.GetPlacementAngle (System.Single x, System.Single y, System.Single z) (at :0) (wrapper dynamic-method) Player.DMD(Player,bool) Player.LateUpdate () (at <129115856e0f4aaab8f30ced19f41272>:0)

rolopogo commented 3 years ago

I think this is caused by no tool delay patching Player.UpdatePlacement and not allowing Gizmo to instantiate it's prefab. I'll have to have a look at their code, but as far as I can tell, gizmo isn't really at fault here.