From 2e745748eb692031b93127ed3bdace9c916e1012 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 19 Sep 2024 08:57:57 +0200 Subject: [PATCH] Use default animation speeds for sit/stand --- handlers/animations.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/animations.lua b/handlers/animations.lua index 4479952..5885425 100644 --- a/handlers/animations.lua +++ b/handlers/animations.lua @@ -22,7 +22,7 @@ local function stand_up(player_name) local old_anim = player_api.get_animation(player) if old_anim and old_anim.animation == "sit" then - player_api.set_animation(player, "stand", 30) + player_api.set_animation(player, "stand") end local hash = minetest.hash_node_position(sitting[player_name]) @@ -67,7 +67,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing) end player_api.player_attached[player_name] = true - player_api.set_animation(clicker, "sit", 30) + player_api.set_animation(clicker, "sit") sitting[player_name] = table.copy(pos) seats_occupied[hash] = true clicker:set_pos(pos)