Project Zomboid

Project Zomboid

Not enough ratings
Delete All Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
44.644 KB
4 Sep, 2024 @ 6:38pm
8 Sep, 2024 @ 11:32am
2 Change Notes ( view )

Subscribe to download
Delete All Fix

Description
Small bug fix when deleting items from containers.
When deleting the contents of a container with the delete button a confirmation window pops up, if you change containers while this window is up (or too quickly after hitting yes on the confirmation window) it will delete the container that you changed to and not the container you opened the confirmation window on.

To fix this i did a hard override of the delete function to capture the original location of the container the confirmation window was created on, and to delete that container.

Should work with controller but i didnt test (please let me know if it does), probably not compatible with other mods that effect the "ISInventoryPane:removeAll" and "ISInventoryPane:onConfirmDelete" as this is a hard override of those functions.

Workshop ID: 3324752609
Mod ID: DeleteAllFix