mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
5fa614d97e
commit
fec30e37ac
6 changed files with 90 additions and 42 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue