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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user