When you 'invoke' lua code, it creates coroutine

This commit is contained in:
2021-11-30 12:39:09 -05:00
parent 742209988b
commit 5db5a8b06f
6 changed files with 81 additions and 48 deletions

View File

@@ -170,9 +170,9 @@ void World::patch_luatabs(StreamBuffer *sb, DebugCollector *dbc) {
int ncreate = sb->read_int32();
util::IdVector closetans = get_near(actor_id, RadiusClose, true, false);
assert(closehash == util::hash_id_vector(closetans));
int nt = number_lua_tables(closetans);
number_lua_tables(closetans);
create_new_tables(ncreate);
DebugLine(dbc) << "lua tables: " << nt << " existing " << ncreate << " new";
// DebugLine(dbc) << "lua tables: " << nt << " existing " << ncreate << " new";
patch_tangible_databases(sb, dbc);
patch_numbered_tables(sb, dbc);
unnumber_lua_tables();