mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-28 03:45:24 +01:00
Fix AreaStore's IDs persistence (#8888)
Improve documentation Read old formats Fix free ID function. Return first gap in map
This commit is contained in:
@@ -185,6 +185,7 @@ int LuaAreaStore::l_insert_area(lua_State *L)
|
||||
if (lua_isnumber(L, 5))
|
||||
a.id = lua_tonumber(L, 5);
|
||||
|
||||
// Insert & assign a new ID if necessary
|
||||
if (!ast->insertArea(&a))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user