aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/animations.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pets/animations.lua')
-rw-r--r--lua/pets/animations.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/pets/animations.lua b/lua/pets/animations.lua
index d8749c7..a330cec 100644
--- a/lua/pets/animations.lua
+++ b/lua/pets/animations.lua
@@ -150,7 +150,7 @@ function M.Animation:set_next_action()
}
if self.state.sleeping then
-- If the animation isn't currently a sleeping animtion, put the pet in it, otherwise loop the animation
- if not utils.table_includes(sleeping_animations, self.current_action) then
+ if not vim.tbl_contains(sleeping_animations, self.current_action) then
self.current_action = get_sleeping_animation()
end
else