mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
sync kammi
This commit is contained in:
parent
c838047f33
commit
ae3520f3c4
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue