mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
feat: reloading modules
This commit is contained in:
parent
4761c520d5
commit
12aced92cc
2 changed files with 30 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ function run_current_file()
|
|||
world = world.reload_script,
|
||||
hud = hud.reload_script,
|
||||
component = entities.reload_component,
|
||||
module = reload_module,
|
||||
}
|
||||
func = funcs[script_type] or func
|
||||
local output = core.capture_output(function() func(unit) end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue