mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix main menu being unable to set secure settings
This commit is contained in:
parent
abd4a79acb
commit
7bcbc0105b
1 changed files with 4 additions and 3 deletions
|
@ -75,9 +75,10 @@ int ModApiUtil::l_get_us_time(lua_State *L)
|
|||
}
|
||||
|
||||
#define CHECK_SECURE_SETTING(L, name) \
|
||||
if (name.compare(0, 7, "secure.") == 0) {\
|
||||
lua_pushliteral(L, "Attempt to set secure setting.");\
|
||||
lua_error(L);\
|
||||
if (ScriptApiSecurity::isSecure(L) && \
|
||||
name.compare(0, 7, "secure.") == 0) { \
|
||||
lua_pushliteral(L, "Attempt to set secure setting."); \
|
||||
lua_error(L); \
|
||||
}
|
||||
|
||||
// setting_set(name, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue