mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
fix debug.getinfo not being unset in CPCSM (regression)
was introduced in eeb6cab
This commit is contained in:
parent
051e824787
commit
fabb6736a1
3 changed files with 5 additions and 2 deletions
|
@ -40,7 +40,7 @@ stds.menu_common = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
files["builtin/client/register.lua"] = {
|
files["builtin/client/init.lua"] = {
|
||||||
globals = {
|
globals = {
|
||||||
debug = {fields={"getinfo"}},
|
debug = {fields={"getinfo"}},
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,3 +13,6 @@ dofile(commonpath .. "information_formspecs.lua")
|
||||||
dofile(clientpath .. "chatcommands.lua")
|
dofile(clientpath .. "chatcommands.lua")
|
||||||
dofile(clientpath .. "misc.lua")
|
dofile(clientpath .. "misc.lua")
|
||||||
assert(loadfile(commonpath .. "item_s.lua"))({}) -- Just for push/read node functions
|
assert(loadfile(commonpath .. "item_s.lua"))({}) -- Just for push/read node functions
|
||||||
|
|
||||||
|
-- unset, as promised in initializeSecurityClient()
|
||||||
|
debug.getinfo = nil
|
||||||
|
|
|
@ -311,7 +311,7 @@ void ScriptApiSecurity::initializeSecurityClient()
|
||||||
"time"
|
"time"
|
||||||
};
|
};
|
||||||
static const char *debug_whitelist[] = {
|
static const char *debug_whitelist[] = {
|
||||||
"getinfo", // used by builtin and unset before mods load <- FIXME: doesn't actually happen
|
"getinfo", // used by builtin and unset before mods load
|
||||||
"traceback"
|
"traceback"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue