mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Reduce distance limit for items being resend, seems to work better.
This commit is contained in:
parent
ef096e00cb
commit
d44dc65f7d
1 changed files with 4 additions and 4 deletions
|
@ -351,7 +351,7 @@ function rpc.item_localize_req(gid)
|
||||||
end
|
end
|
||||||
|
|
||||||
function rpc.update_positions(position_data)
|
function rpc.update_positions(position_data)
|
||||||
local LIMIT = 1000
|
local LIMIT = 100
|
||||||
local cx, cy = GameGetCameraPos()
|
local cx, cy = GameGetCameraPos()
|
||||||
for gid, el in pairs(position_data) do
|
for gid, el in pairs(position_data) do
|
||||||
local x, y = el[1], el[2]
|
local x, y = el[1], el[2]
|
||||||
|
@ -360,8 +360,8 @@ function rpc.update_positions(position_data)
|
||||||
if item ~= nil then
|
if item ~= nil then
|
||||||
EntitySetTransform(item, x, y)
|
EntitySetTransform(item, x, y)
|
||||||
else
|
else
|
||||||
-- util.log("Requesting again", gid)
|
util.log("Requesting again "..gid)
|
||||||
-- rpc.request_send_again(gid)
|
rpc.request_send_again(gid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -373,7 +373,7 @@ function rpc.request_send_again(gid)
|
||||||
end
|
end
|
||||||
local item = item_sync.find_by_gid(gid)
|
local item = item_sync.find_by_gid(gid)
|
||||||
if item == nil then
|
if item == nil then
|
||||||
util.log("Requested to send item again, but this item wasn't found:", gid)
|
util.log("Requested to send item again, but this item wasn't found: "..gid)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
item_sync.make_item_global(item)
|
item_sync.make_item_global(item)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue