Skip to content

Commit

Permalink
bugfix: reported seat occupied when it wasn't
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Dec 19, 2024
1 parent 348201c commit 806e480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homedecor_seating/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 806e480

Please sign in to comment.