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.
DestroyItemInSlotFix
Fixes niche vanilla issue with PlayerControllerB.DestroyItemInSlot(int itemSlot) and the new utility slot.
| Date uploaded | a day ago |
| Version | 1.0.0 |
| Download link | JacobG5-DestroyItemInSlotFix-1.0.0.zip |
| Downloads | 11365 |
| Dependency string | JacobG5-DestroyItemInSlotFix-1.0.0 |
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.2100README
v80+ introduced a new item slot for utilities. Zeekerss updated most of his code for item removal accordingly but missed a single line on PlayerControllerB.DestroyItemInSlot(int itemSlot) which results in an index out of bounds error.
A lot of mods including many of my own use PlayerControllerB.DestroyItemInSlotAndSync(int itemSlot) to delete an item from a players slots on all clients which now throws a nasty error when destroying an item in the new slot.
This mod patches that method to fix this problem so I dont have to rewrite a bunch of code. I decided to upload it as a standalone mod that way other modders who were also using this method and are confused about the error can just depend on it.
CHANGELOG
v1.0.0 Release
- Initial