diff options
Diffstat (limited to 'objects/Loot.lua')
| -rw-r--r-- | objects/Loot.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/Loot.lua b/objects/Loot.lua index cfbfea8..1e39211 100644 --- a/objects/Loot.lua +++ b/objects/Loot.lua @@ -22,7 +22,7 @@ function Loot:onContact(other) local loots = G.currentRoom.objects.loots if other.objectType == "player" then local pickedLoot = table.remove(loots, utils.indexof(loots, self)) - table.insert(G.player.hearts, pickedLoot.type) + G.player:gainHeart(pickedLoot.type) G.BodyLifeCycleManager:destroy(self.physicsBody) end end |
