mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Workaround cross call not working within one context
This commit is contained in:
parent
3497a4a321
commit
db9eee80be
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
function HasFlagPersistent(flag)
|
||||
if EwHasPersistentFlag ~= nil then
|
||||
return EwHasPersistentFlag(flag)
|
||||
end
|
||||
return CrossCall("ew_has_flag", flag)
|
||||
end
|
|
@ -5,7 +5,11 @@ for _, flag in ipairs(util.string_split(ctx.proxy_opt.progress, ",")) do
|
|||
end
|
||||
|
||||
local function has_flag(flag)
|
||||
return flag_present[flag]
|
||||
return flag_present[flag] == true
|
||||
end
|
||||
|
||||
function EwHasPersistentFlag(flag)
|
||||
return has_flag(flag)
|
||||
end
|
||||
|
||||
np.CrossCallAdd("ew_has_flag", has_flag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue