Overhaul tangible_make to get rid of LuaOldStack
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user