Nick's Inventory Selection Fix fixes an annoying inventory bug in Project Zomboid Build 42 that causes selected items to become automatically deselected. Keep your item selections intact when containers update, items get wet or their condition changes. Includes a Shift-click selection fix and supports singleplayer and multiplayer.
Contents
Nick's Inventory Selection Fix is a quality-of-life mod for Project Zomboid Build 42 that fixes an annoying inventory interface bug causing selected items to become automatically deselected.
In the original game, inventory selections may unexpectedly disappear while players are organizing equipment, managing containers, or selecting multiple items.
The modification corrects how Project Zomboid restores item selections after inventory updates, making inventory management more consistent and reliable.
Fix Disappearing Inventory Selections
The main purpose of Nick's Inventory Selection Fix is to prevent selected items from losing their highlighted state without user interaction.
The problem can occur when:
- An item changes condition over time.
- Clothing or other inventory items become wet.
- The contents of a container change.
- The inventory interface refreshes automatically.
- The game rebuilds its inventory list while items are selected.
These updates are part of Project Zomboid's normal inventory system, but they can unexpectedly interrupt item selection.
Nick's Inventory Selection Fix prevents these automatic updates from incorrectly clearing the current selection.
How the Inventory Bug Works
Project Zomboid frequently rebuilds its inventory list to reflect changes in items and containers.
Whenever the inventory is rebuilt, the game attempts to remember the currently selected items and restore the selection afterward.
However, the original implementation has a problem.
When restoring a selection, the game may restore an individual item instead of the entire inventory row it belongs to.
During a subsequent inventory refresh, the interface can fail to locate the previously selected item in the expected position.
As a result, the selection disappears.
The mod fixes this selection restoration behavior, allowing the inventory interface to preserve selections more reliably during automatic updates.
Improved Multiple-Item Selection
Nick's Inventory Selection Fix also incorporates an improvement related to Shift-click selection.
Shift-click is commonly used to select a range of items in an inventory list.
The included fix is based on the functionality from NISF Shift Range Fix and complements the main selection restoration correction.
This makes the mod particularly useful when organizing multiple objects, transferring supplies, or managing large collections of items.
More Convenient Inventory Management
Although the modification is relatively small, it addresses a problem that can become especially noticeable during everyday survival activities.
Situations where the fix can help include:
- Sorting items between containers.
- Organizing food and supplies.
- Managing clothing and equipment.
- Selecting multiple objects for inventory operations.
- Working with inventories that frequently update their contents.
Instead of repeatedly selecting the same items after unexpected interface refreshes, players can manage their inventory with fewer interruptions.
The mod focuses on correcting inventory selection behavior rather than introducing a new inventory interface.
Compatibility with Other Inventory Mods
Nick's Inventory Selection Fix supports Project Zomboid Build 42 in both singleplayer and multiplayer.
However, compatibility with other inventory interface modifications requires attention.
The mod modifies the following functions:
ISInventoryPane:restoreSelection()- Replaces the original selection restoration logic.ISInventoryPane:onMouseDown()- Wraps the mouse interaction function.
Important: Other mods that replace these same functions may conflict with Nick's Inventory Selection Fix.
This is particularly relevant to inventory overhaul mods that heavily modify the standard Project Zomboid inventory interface.
If you use several inventory-related modifications, check whether they change the same functions.
Supported Game Modes
- Project Zomboid Build 42: Supported.
- Singleplayer: Supported.
- Multiplayer: Supported.
- Inventory selection restoration: Fixed.
- Shift-click selection: Includes an additional fix.
- Inventory overhaul compatibility: May vary depending on modifications to the same interface functions.
Nick's Inventory Selection Fix is a useful addition for players who want a more reliable inventory experience without changing the familiar appearance of Project Zomboid's inventory system.

Comments 0
No comments yet — be the first.
Log in or sign up to leave a comment.