From 1f33988ac5c6fcbeca943e673318e6e6f536257c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 19 Sep 2024 14:38:11 +0200 Subject: [PATCH] Fix sit_destruct calling funcs wrongly --- handlers/animations.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/handlers/animations.lua b/handlers/animations.lua index 01c4e43..147cb69 100644 --- a/handlers/animations.lua +++ b/handlers/animations.lua @@ -110,12 +110,9 @@ function xdecor.sit_destruct(pos) local hash = minetest.hash_node_position(pos) local occupier = seats_occupied[hash] if occupier then - local player = minetest.get_player_by_name(occupier) - if player then - stand_up(player) - end + stand_up(occupier) seats_occupied[hash] = nil - sitting[occupied] = nil + sitting[occupier] = nil end end