diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-14 21:05:53 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-14 21:05:53 +0800 |
| commit | 6e85a4f97bbfe13519ce75aa6c263c188a0528fe (patch) | |
| tree | 7427c65dba3df05184259d507737d9f4116bc44c | |
| parent | 96d3d98d307e848b0375ca8af10dcf0906d46eb4 (diff) | |
fix: loot cannot be picked after leaving room
| -rw-r--r-- | objects/Loot.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
