re-add player check to make comment and count correct

This commit is contained in:
flux 2024-03-29 16:03:09 -07:00
parent f82ceda766
commit 7d68351293
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
1 changed files with 3 additions and 0 deletions

View File

@ -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