From 806e480be988d68812c895a4837251a794c8ee48 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Thu, 19 Dec 2024 16:23:44 +0100 Subject: [PATCH] bugfix: reported seat occupied when it wasn't --- homedecor_seating/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homedecor_seating/init.lua b/homedecor_seating/init.lua index 6dbca301..99318e97 100644 --- a/homedecor_seating/init.lua +++ b/homedecor_seating/init.lua @@ -166,7 +166,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats) for hash, spos in pairs(valid_seats) do local pstatus = false for _, ref in pairs(minetest.get_objects_inside_radius(spos, 0.5)) do - if ref:is_player() then + if ref:is_player() and seated_cache[ref:get_player_name()] then pstatus = true end end