Vintage Story Mod DB · Vintage Story mod
InventoryDoubleUpdateFix
There is an exception going around in our server that crashes the game for almost all players when it happens It reads something like this: System.NullReferenceException: Object reference not set to an instance of an object. at Vintagestory.Common.InventoryN
Quick answer
Which InventoryDoubleUpdateFix release should I use?
InventoryDoubleUpdateFix 1.0.4 targets 1.20.11, 1.20.12. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is InventoryDoubleUpdateFix required on the client, server, or both?
It must be installed on the client. Installation on the dedicated server is optional.
This release supports both sides, but the source does not require it on the server.
What else does InventoryDoubleUpdateFix 1.0.4 need?
1.0.4. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add InventoryDoubleUpdateFix without breaking your instance.
Built for InventoryDoubleUpdateFix 1.0.4. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.4. It targets 1.20.11, 1.20.12; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
It must be installed on the client. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.4. It opens that exact file at the source.
About this project
What does InventoryDoubleUpdateFix add?
There is an exception going around in our server that crashes the game for almost all players when it happens
It reads something like this:
System.NullReferenceException: Object reference not set to an instance of an object. at Vintagestory.Common.InventoryNetworkUtil.UpdateSlotStack(ItemSlot slot, ItemStack newStack) in VintagestoryLib\Common\GameContent\Inventory\InventoryNetworkUtil.cs:line 493 at Vintagestory.Client.NoObf.GeneralPacketHandler.HandleInventoryDoubleUpdate(Packet_Server packet) in VintagestoryLib\Client\Systems\GeneralPacketHandler.cs:line 385 at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime) in VintagestoryLib\Client\ClientMain.cs:line 786 at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenRunningGame.cs:line 161 at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 695 at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 670 at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88 at OpenTK.Windowing.Desktop.GameWindow.Run()
It has something to do with swapping items in your inventory (I suspect it might be Art of Growing that causes this), but I am unable to pinpoint the exact issue. So I have decided to create a small patch that consumes the exception and logs info about the error into the client logs.
Is swallowing exceptions a good idea? Not at all. But it is a lot better than half the server crashing a few times every day.
Project description from Vintage Story Mod DB.
Pick your setup
InventoryDoubleUpdateFix releases for each Vintage Story version.
Choose the version and loader you play, then open the matching release.
1.20.11
1 loader build1.20.10
1 loader build1.20.9
1 loader build1.20.8
1 loader build1.20.7
1 loader build1.20.6
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
InventoryDoubleUpdateFix versions and loaders
1.0.4
doubleupdatefix_1.0.4.zip
21 Jun 2025
1.0.3
doubleupdatefix_1.0.3.zip
29 May 2025
1.0.2
doubleupdatefix_1.0.2.zip
29 May 2025
1.0.1
doubleupdatefix_1.0.1.zip
29 May 2025
1.0.0
doubleupdatefix_1.0.0.zip
29 May 2025
Looking for an older file? The official Vintage Story Mod DB project page is in Resources.