From add39bd3057f1dfa3ad3c5cd5215aba3b1cf182d Mon Sep 17 00:00:00 2001 From: Giuseppe Gadola Date: Wed, 1 Mar 2023 14:22:38 +0100 Subject: feat(pets): added dog --- lua/pets/pet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/pets/pet.lua') diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua index f767ed0..99f0053 100644 --- a/lua/pets/pet.lua +++ b/lua/pets/pet.lua @@ -47,7 +47,7 @@ function M.Pet:kill() self.animation:stop() self.popup:unmount() end - if self.death_animation then + if self.death_animation and self.animation.frames["die"] ~= nil then self.animation.dying = true else self.animation:stop() -- cgit v1.3-2-g11bf