From 15e3f1dec2de3ff471b80496922a31e61699b7fb Mon Sep 17 00:00:00 2001 From: Jean Carlo de Souza Date: Thu, 2 Jan 2025 14:19:12 -0300 Subject: [PATCH] fix: prevent player corpses from being removed during tile cleaning (#3205) --- data/scripts/movements/closing_door.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/movements/closing_door.lua b/data/scripts/movements/closing_door.lua index 3a63407267e..1f977deb403 100644 --- a/data/scripts/movements/closing_door.lua +++ b/data/scripts/movements/closing_door.lua @@ -104,7 +104,7 @@ function closingDoor.onStepOut(creature, item, position, fromPosition) while tileItem and i < tileCount do tileItem = tile:getThing(i) - if tileItem and tileItem:getUniqueId() ~= item.uid and tileItem:getType():isMovable() then + if tileItem and tileItem:getUniqueId() ~= item.uid and tileItem:getType():isMovable() and not isCorpse(tileItem:getUniqueId()) then tileItem:remove() else i = i + 1