mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix post-runnable context in content-related functions
This commit is contained in:
parent
025e32eec1
commit
0ffefddee1
2 changed files with 6 additions and 2 deletions
|
|
@ -26,7 +26,6 @@ local function tb_frame_tostring(frame)
|
|||
end
|
||||
|
||||
local __vc__app_script_coroutine
|
||||
local __vc__is_post_runnable = false
|
||||
|
||||
local function complete_app_lib(app)
|
||||
local __app_load_content = app.load_content
|
||||
|
|
@ -46,7 +45,7 @@ local function complete_app_lib(app)
|
|||
app.tick = __app_tick
|
||||
|
||||
local function call_in_app_script_co(func, ...)
|
||||
if __vc__is_post_runnable then
|
||||
if __vc_is_post_runnable_context() then
|
||||
func(...)
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue