Change the creation/deletion of tangibles so that the tangible database is never really deleted.
This commit is contained in:
@@ -304,12 +304,7 @@ static void set_transmitted_value(LuaStack &LS, LuaSlot tangibles, LuaSlot ntmap
|
||||
case LUA_TT_TANGIBLE: {
|
||||
int64_t id = sb->read_int64();
|
||||
DebugLine(dbc) << dbinfo << "tan " << id;
|
||||
LS.rawget(target, tangibles, id);
|
||||
if (LS.isnil(target)) {
|
||||
World *w = World::fetch_global_pointer(LS.state());
|
||||
w->tangible_make(LS.state(), id, "nowhere", true);
|
||||
lua_replace(LS.state(), target.index());
|
||||
}
|
||||
LS.maketan(target, id);
|
||||
return;
|
||||
}
|
||||
case LUA_TT_GLOBALENV: {
|
||||
|
||||
Reference in New Issue
Block a user