mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
use debug.log for stdmin messages
This commit is contained in:
parent
3146499433
commit
07169761cd
1 changed files with 2 additions and 2 deletions
|
|
@ -277,11 +277,11 @@ function require(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
function __scripts_cleanup()
|
function __scripts_cleanup()
|
||||||
print("cleaning scripts cache")
|
debug.log("cleaning scripts cache")
|
||||||
for k, v in pairs(__cached_scripts) do
|
for k, v in pairs(__cached_scripts) do
|
||||||
local packname, _ = parse_path(k)
|
local packname, _ = parse_path(k)
|
||||||
if packname ~= "core" then
|
if packname ~= "core" then
|
||||||
print("unloaded "..k)
|
debug.log("unloaded "..k)
|
||||||
__cached_scripts[k] = nil
|
__cached_scripts[k] = nil
|
||||||
package.loaded[k] = nil
|
package.loaded[k] = nil
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue