mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Return nil on empty get_area() (#4508)
This commit is contained in:
@@ -111,6 +111,9 @@ int LuaAreaStore::l_get_area(lua_State *L)
|
||||
const Area *res;
|
||||
|
||||
res = ast->getArea(id);
|
||||
if (!res)
|
||||
return 0;
|
||||
|
||||
push_area(L, res, include_borders, include_data);
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user