Refactored and simplified lua stuff a lot.
Some checks failed
Build Dusk / run-tests (push) Failing after 1m23s
Build Dusk / build-linux (push) Failing after 1m47s
Build Dusk / build-psp (push) Failing after 1m41s

This commit is contained in:
2026-02-01 21:28:21 -06:00
parent 78e1ae885a
commit 053778a502
53 changed files with 638 additions and 804 deletions

View File

@@ -128,8 +128,8 @@ int scriptFuncEntitySetZ(lua_State *L) {
void scriptFuncEntity(scriptcontext_t *context) {
assertNotNull(context, "Script context cannot be NULL");
scriptContextRegFunc(context, "entityAdd", scriptFuncEntityAdd);
scriptContextRegFunc(context, "entitySetX", scriptFuncEntitySetX);
scriptContextRegFunc(context, "entitySetY", scriptFuncEntitySetY);
scriptContextRegFunc(context, "entitySetZ", scriptFuncEntitySetZ);
lua_register(context->luaState, "entityAdd", scriptFuncEntityAdd);
lua_register(context->luaState, "entitySetX", scriptFuncEntitySetX);
lua_register(context->luaState, "entitySetY", scriptFuncEntitySetY);
lua_register(context->luaState, "entitySetZ", scriptFuncEntitySetZ);
}