From 6e85a4f97bbfe13519ce75aa6c263c188a0528fe Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 14 Mar 2025 21:05:53 +0800 Subject: fix: loot cannot be picked after leaving room --- objects/Loot.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objects/Loot.lua b/objects/Loot.lua index aaadf7b..cfbfea8 100644 --- a/objects/Loot.lua +++ b/objects/Loot.lua @@ -27,6 +27,10 @@ function Loot:onContact(other) end end +function Loot:placeInRoom() + G.BodyLifeCycleManager:create(self, config.lootSize, "static", true) +end + function Loot:update(dt) -- nothing yet end -- cgit v1.2.3