mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add more cheating-related rules
This commit is contained in:
parent
22fa082fc6
commit
6602584c13
5 changed files with 65 additions and 20 deletions
|
|
@ -146,6 +146,11 @@ static int l_set_content_access(lua::State* L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int l_set_debug_cheats(lua::State* L) {
|
||||
hud->setDebugCheats(lua::toboolean(L, 1));
|
||||
return 0;
|
||||
}
|
||||
|
||||
const luaL_Reg hudlib[] = {
|
||||
{"open_inventory", lua::wrap<l_open_inventory>},
|
||||
{"close_inventory", lua::wrap<l_close_inventory>},
|
||||
|
|
@ -161,4 +166,5 @@ const luaL_Reg hudlib[] = {
|
|||
{"get_player", lua::wrap<l_get_player>},
|
||||
{"_is_content_access", lua::wrap<l_is_content_access>},
|
||||
{"_set_content_access", lua::wrap<l_set_content_access>},
|
||||
{"_set_debug_cheats", lua::wrap<l_set_debug_cheats>},
|
||||
{NULL, NULL}};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue