From 35e9d5e48fb780bbce825b2521bab3f9375aa25d Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sun, 17 Nov 2024 22:20:29 -0500 Subject: [PATCH] try to fix item duping --- quant.ew/files/system/item_sync.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quant.ew/files/system/item_sync.lua b/quant.ew/files/system/item_sync.lua index 579d368c..8adc2314 100644 --- a/quant.ew/files/system/item_sync.lua +++ b/quant.ew/files/system/item_sync.lua @@ -440,6 +440,9 @@ function rpc.item_globalize(item_data) if is_safe_to_remove() then item_sync.remove_item_with_id_now(item_data.gid) end + if item_sync.find_by_gid(item_data.gid) ~= nil then + return + end local item = inventory_helper.deserialize_single_item(item_data) add_stuff_to_globalized_item(item, item_data.gid) local coms = EntityGetComponent(item, "VariableStorageComponent")