1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

bugfix: reported seat occupied when it wasn't

This commit is contained in:
Luke aka SwissalpS 2024-12-19 16:23:44 +01:00
parent 348201c4ee
commit 806e480be9

View File

@ -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