summaryrefslogtreecommitdiff
path: root/objects/Loot.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-13 14:36:18 +0800
committerEltrac <hi@guhub.cn>2025-03-13 14:36:18 +0800
commitbe01dd710eaaf74562ea4479d171055af10f1e91 (patch)
tree935a49a1debae8497d0e04574af61b2a35fa0d61 /objects/Loot.lua
parentd0c372b1e5d195c0eeeffe05f16930c53adb6818 (diff)
fix: loots blocking the way
set loots as sensor to allow contact listen but avoid physical collision
Diffstat (limited to 'objects/Loot.lua')
-rw-r--r--objects/Loot.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/Loot.lua b/objects/Loot.lua
index 7cf3959..8a2d162 100644
--- a/objects/Loot.lua
+++ b/objects/Loot.lua
@@ -12,7 +12,7 @@ function Loot:new(name, x, y)
}
setmetatable(obj, Loot)
- G.BodyLifeCycleManager:create(obj, config.lootSize, "static")
+ G.BodyLifeCycleManager:create(obj, config.lootSize, "static", true)
return obj
end