Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
GrabSlotFix
Fixes players getting stuck unable to grab, drop, switch slots or use items after a grab fails with no free slot.
By averr
| Last updated | a day ago |
| Total downloads | 30 |
| Total rating | 0 |
| Categories | AI Generated |
| Dependency string | averr-GrabSlotFix-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
Grab Slot Fix
Fixes a bug where a player suddenly can't grab, drop, switch slots or use items, though they can still walk.
What causes it
When the host confirms a grab, every player's game puts the item into that player's first empty slot. If a player's game finds no empty slot, the slot lookup returns -1, the game throws an error (IndexOutOfRangeException in SwitchToItemSlot, seen in packs with LethalThings Reloaded's Utility Belt hook in the call chain), and the rest of the grab never runs. The player who grabbed then stays in the "grabbing" state forever, which blocks grabbing, dropping, slot switching and item use until they die or rejoin.
What this does
- If the item is already in one of the player's slots (a repeated grab message), it uses that slot instead of failing.
- If the grab still fails, it cancels the grab the same way the game cancels any refused grab, so the player is released instead of stuck.
Notes
- Install it on every player's game; the stuck state happens on the grabbing player's own machine.
- When a grab gets cancelled this way, the host may still think that player is holding the item, so that one item can end up out of sync until the next round.