mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
update auth priority properly
This commit is contained in:
parent
4e4f881ad1
commit
93afc1c014
2 changed files with 72 additions and 15 deletions
|
@ -83,7 +83,7 @@ local function get_all_chunks(ocx, ocy, priority)
|
|||
end
|
||||
net.proxy_bin_send(KEY_WORLD_END, string.char(priority + 1))
|
||||
iter_fast = not iter_fast
|
||||
elseif GameGetFrameNum() % (int * 4) == 4 then
|
||||
elseif priority == 0 and GameGetFrameNum() % (int * 4) == 4 then
|
||||
local nx = ocx
|
||||
if iter_slow == 1 or iter_slow == 2 then
|
||||
nx = nx - 3
|
||||
|
@ -122,10 +122,10 @@ function world_sync.on_world_update()
|
|||
if iter_cam then
|
||||
get_all_chunks(cx, cy, 16)
|
||||
else
|
||||
get_all_chunks(ocx, ocy, 16)
|
||||
get_all_chunks(ocx, ocy, 32)
|
||||
end
|
||||
local int = 3 -- ctx.proxy_opt.world_sync_interval
|
||||
if GameGetFrameNum() % (int * 4) == 0 then
|
||||
if GameGetFrameNum() % (int * 8) == 0 then
|
||||
iter_cam = not iter_cam
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue