mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Only sync initial items once.
This commit is contained in:
parent
446b940a37
commit
9978b6d85f
2 changed files with 8 additions and 0 deletions
3
Justfile
3
Justfile
|
@ -16,6 +16,9 @@ run-rel-n-2:
|
|||
run2:
|
||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21252 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
||||
|
||||
run3:
|
||||
cd noita-proxy && NP_APPID=480 NP_SKIP_MOD_CHECK=1 NP_NOITA_ADDR=127.0.0.1:21253 cargo run -- --launch-cmd "wine noita.exe -gamemode 0"
|
||||
|
||||
release:
|
||||
python prepare_release.py
|
||||
|
||||
|
|
|
@ -223,6 +223,11 @@ end
|
|||
|
||||
rpc.opts_reliable()
|
||||
function rpc.initial_items(item_list)
|
||||
-- Only run once ever, as it tends to duplicate items otherwise
|
||||
if GameHasFlagRun("ew_initial_items") then
|
||||
return
|
||||
end
|
||||
GameAddFlagRun("ew_initial_items")
|
||||
for _, item_data in ipairs(item_list) do
|
||||
local item = item_sync.find_by_gid(item_data.gid)
|
||||
if item == nil then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue