From 822fce4586cf530cc44d775f3cefda20f1c4f336 Mon Sep 17 00:00:00 2001 From: KrecikOnDexin Date: Sun, 24 Nov 2024 17:04:30 +0100 Subject: [PATCH] fix item destroy by doors --- 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 23825e3e99..6441f24df5 100644 --- a/data/scripts/movements/closing_door.lua +++ b/data/scripts/movements/closing_door.lua @@ -22,7 +22,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 - tileItem:remove() + doRelocate(position, creature:getPosition()) else i = i + 1 end