Overhaul tangible_make to get rid of LuaOldStack

This commit is contained in:
2023-04-14 15:33:58 -04:00
parent 167dfe909f
commit 69f2fb6226
5 changed files with 35 additions and 46 deletions

View File

@@ -167,8 +167,7 @@ LuaDefine(tangible_build, "config",
World *w = World::fetch_global_pointer(L);
int64_t new_id = w->alloc_id_predictable();
Tangible *tan = w->tangible_make(L, new_id, "nowhere", true);
lua_replace(L, database.index());
Tangible *tan = w->tangible_make(LS, database, new_id, "nowhere");
// Update the class of the new tangible.
LS.getmetatable(mt, database);