mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add rules & add 'show-content-access' rule
This commit is contained in:
parent
a50cb109c8
commit
2e24d60404
7 changed files with 156 additions and 28 deletions
|
|
@ -204,6 +204,11 @@ void scripting::cleanup() {
|
|||
}
|
||||
lua::pop(L);
|
||||
|
||||
lua::getglobal(L, "rules");
|
||||
lua::getfield(L, "clear");
|
||||
lua::call_nothrow(L, 0);
|
||||
lua::pop(L);
|
||||
|
||||
if (lua::getglobal(L, "__scripts_cleanup")) {
|
||||
lua::call_nothrow(L, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue