Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 0132e2e

Browse files
committed
Update inventory.lua
1 parent 834957c commit 0132e2e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

server/classes/inventory.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,16 @@ function Core.Classes.Inventory.SaveExternalInventory (type, inventoryId, items)
10891089
items = Core.Classes.Inventory.ValidateItems(items)
10901090

10911091
if type == 'drop' then
1092+
if not Core.Classes.Drops.Get(inventoryId) then
1093+
Core.Utilities.Log({
1094+
type = "warning",
1095+
title = "Core.Classes.Inventory.SaveExternalInventory",
1096+
message = "Drop no longer exists, skipping save for drop " .. inventoryId
1097+
})
1098+
1099+
return true
1100+
end
1101+
10921102
local res = Core.Classes.Drops.SaveItems(inventoryId, items)
10931103

10941104
if not res then

0 commit comments

Comments
 (0)