1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Some refactoring and fixes to VoxelArea and VoxelManip

In particular this validates the edges of VoxelArea and fixes
all the nonsense tests uncovered by it.
This commit is contained in:
sfan5 2024-10-07 17:48:19 +02:00
parent 5532248cd7
commit 6d5103900f
11 changed files with 178 additions and 183 deletions

View file

@ -333,6 +333,9 @@ int LuaVoxelManip::l_was_modified(lua_State *L)
LuaVoxelManip *o = checkObject<LuaVoxelManip>(L, 1);
MMVManip *vm = o->vm;
if (!o->is_mapgen_vm)
log_deprecated(L, "was_modified called for a non-mapgen VoxelManip object");
lua_pushboolean(L, vm->m_is_dirty);
return 1;