1
0
Fork 0

Fix main menu being unable to set secure settings

mutilcraft-mt53
ShadowNinja 2016-03-03 00:57:19 -05:00
parent abd4a79acb
commit 7bcbc0105b
1 changed files with 4 additions and 3 deletions

View File

@ -75,7 +75,8 @@ int ModApiUtil::l_get_us_time(lua_State *L)
} }
#define CHECK_SECURE_SETTING(L, name) \ #define CHECK_SECURE_SETTING(L, name) \
if (name.compare(0, 7, "secure.") == 0) {\ if (ScriptApiSecurity::isSecure(L) && \
name.compare(0, 7, "secure.") == 0) { \
lua_pushliteral(L, "Attempt to set secure setting."); \ lua_pushliteral(L, "Attempt to set secure setting."); \
lua_error(L); \ lua_error(L); \
} }