Add donotpredict to global(x)

This commit is contained in:
2021-12-21 13:00:11 -05:00
parent 556b03301d
commit f2a20c0231
2 changed files with 4 additions and 2 deletions

View File

@@ -62,7 +62,9 @@ World::World(util::WorldType wt) {
LS.rawset(LuaRegistry, "tangibles", LuaNewTable);
// Create the globaldb in the registry.
LS.rawset(LuaRegistry, "globaldb", LuaNewTable);
if (util::world_type_authoritative(wt)) {
LS.rawset(LuaRegistry, "globaldb", LuaNewTable);
}
// Initialize the SourceDB. At this stage, the sourcedb is
// empty, so it's just populating the lua builtins.