From 7d68351293cebf75ceaa04a2642b2f7cfda6b5a5 Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:03:09 -0700 Subject: [PATCH] re-add player check to make comment and count correct --- worldedit/manipulations.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index 66a1a78..f45aa1e 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -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