sync kammi

This commit is contained in:
bgkillas 2024-11-02 21:48:32 -04:00
parent c838047f33
commit ae3520f3c4

View file

@ -346,6 +346,12 @@ function rpc.item_globalize(item_data)
end end
local item = inventory_helper.deserialize_single_item(item_data) local item = inventory_helper.deserialize_single_item(item_data)
add_stuff_to_globalized_item(item, item_data.gid) add_stuff_to_globalized_item(item, item_data.gid)
local coms = EntityGetComponent(item, "VariableStorageComponent")
for _, com in ipairs(coms) do
if ComponentGetValue2(com, "name") == "throw_time" then
ComponentSetValue2(com, "value_int", GameGetFrameNum())
end
end
end end
rpc.opts_reliable() rpc.opts_reliable()