Refactor: remove references to class World from util and luastack. These are low-level modules that should not reference class World.

This commit is contained in:
2026-02-21 21:42:53 -05:00
parent 7e7f9bf147
commit e9d185acb0
5 changed files with 21 additions and 43 deletions

View File

@@ -131,8 +131,8 @@ World::World(WorldType wt) {
LS.getglobaltable(globtab);
LS.settabletype(globtab, LUA_TT_GLOBALENV);
// Store the world type in the registry.
LS.set_world_type(wt);
// Store whether the world is authoritative in the registry.
LS.set_authoritative(wt == WORLD_TYPE_MASTER);
// Create the globaldb in the registry.
LS.rawset(LuaRegistry, "globaldb", LuaNewTable);