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:
parent
348201c4ee
commit
806e480be9
@ -166,7 +166,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats)
|
|||||||
for hash, spos in pairs(valid_seats) do
|
for hash, spos in pairs(valid_seats) do
|
||||||
local pstatus = false
|
local pstatus = false
|
||||||
for _, ref in pairs(minetest.get_objects_inside_radius(spos, 0.5)) do
|
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
|
pstatus = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user