mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-07-06 18:10:33 +02:00
re-add player check to make comment and count correct
This commit is contained in:
@ -640,6 +640,9 @@ function worldedit.clear_objects(pos1, pos2)
|
||||
|
||||
local function should_delete(obj)
|
||||
-- Avoid players and WorldEdit entities
|
||||
if obj:is_player() then
|
||||
return false
|
||||
end
|
||||
local entity = obj:get_luaentity()
|
||||
return not (entity and entity.name:find("^worldedit:"))
|
||||
end
|
||||
|
Reference in New Issue
Block a user