Fix a bug in synchronous model similarity

This commit is contained in:
2021-12-21 15:22:26 -05:00
parent f2a20c0231
commit b4639c70db
5 changed files with 48 additions and 16 deletions

View File

@@ -61,9 +61,10 @@ World::World(util::WorldType wt) {
// Create the tangibles table in the registry.
LS.rawset(LuaRegistry, "tangibles", LuaNewTable);
// Create the globaldb in the registry.
// Create the globaldb and oncedb in the registry.
if (util::world_type_authoritative(wt)) {
LS.rawset(LuaRegistry, "globaldb", LuaNewTable);
LS.rawset(LuaRegistry, "oncedb", LuaNewTable);
}
// Initialize the SourceDB. At this stage, the sourcedb is