LethalThings icon indicating copy to clipboard operation
LethalThings copied to clipboard

Dying with utility belt makes it unable to pickup items after respawning

Open Kablumbaa opened this issue 1 year ago • 1 comments

When pressing e to pickup an item it give this error

[Error : Unity Log] IndexOutOfRangeException: Index was outside the bounds of the array. Stack trace: (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::FirstEmptyItemSlot>(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Trampoline<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>?1318786928(GameNetcodeStuff.PlayerControllerB) LethalThings.PouchyBelt.PlayerControllerB_SetHoverTipAndCurrentInteractTrigger (On.GameNetcodeStuff.PlayerControllerB+orig_SetHoverTipAndCurrentInteractTrigger orig, GameNetcodeStuff.PlayerControllerB self) (at O:/github/LethalThings/LethalThings/MonoBehaviours/PouchyBelt.cs:81) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Hook<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>?88467856(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::LateUpdate>(GameNetcodeStuff.PlayerControllerB)

[Error : Unity Log] IndexOutOfRangeException: Index was outside the bounds of the array. Stack trace: (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::FirstEmptyItemSlot>(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Trampoline<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>?1318786928(GameNetcodeStuff.PlayerControllerB) LethalThings.PouchyBelt.PlayerControllerB_SetHoverTipAndCurrentInteractTrigger (On.GameNetcodeStuff.PlayerControllerB+orig_SetHoverTipAndCurrentInteractTrigger orig, GameNetcodeStuff.PlayerControllerB self) (at O:/github/LethalThings/LethalThings/MonoBehaviours/PouchyBelt.cs:81) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Hook<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>?88467856(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::LateUpdate>(GameNetcodeStuff.PlayerControllerB)

[Error : Unity Log] IndexOutOfRangeException: Index was outside the bounds of the array. Stack trace: (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::FirstEmptyItemSlot>(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Trampoline<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>?1318786928(GameNetcodeStuff.PlayerControllerB) LethalThings.PouchyBelt.PlayerControllerB_SetHoverTipAndCurrentInteractTrigger (On.GameNetcodeStuff.PlayerControllerB+orig_SetHoverTipAndCurrentInteractTrigger orig, GameNetcodeStuff.PlayerControllerB self) (at O:/github/LethalThings/LethalThings/MonoBehaviours/PouchyBelt.cs:81) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Hook<GameNetcodeStuff.PlayerControllerB::SetHoverTipAndCurrentInteractTrigger>?88467856(GameNetcodeStuff.PlayerControllerB) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::LateUpdate>(GameNetcodeStuff.PlayerControllerB)

Kablumbaa avatar Apr 18 '24 09:04 Kablumbaa

Can be worked around by scrolling to change item selected

chibranche avatar Aug 07 '24 09:08 chibranche