mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user