Skip to content

Commit

Permalink
fix: prevent player corpses from being removed during tile cleaning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeansouzak authored Jan 2, 2025
1 parent b8f4090 commit 15e3f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/movements/closing_door.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15e3f1d

Please sign in to comment.