mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Add a check for item being on ground.
This commit is contained in:
parent
9c28af838f
commit
ca32961147
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ local function send_item_positions()
|
||||||
for _, item in ipairs(EntityGetWithTag("ew_global_item")) do
|
for _, item in ipairs(EntityGetWithTag("ew_global_item")) do
|
||||||
local gid = item_sync.get_global_item_id(item)
|
local gid = item_sync.get_global_item_id(item)
|
||||||
-- Only send info about items created by us.
|
-- Only send info about items created by us.
|
||||||
if is_my_item(gid) then
|
if is_my_item(gid) and is_item_on_ground(item) then
|
||||||
local x, y = EntityGetTransform(item)
|
local x, y = EntityGetTransform(item)
|
||||||
position_data[gid] = {x, y}
|
position_data[gid] = {x, y}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue