Let players sleep in the same bed

This commit is contained in:
Lizzy Fleckenstein 2022-01-27 20:09:16 +01:00
parent 13a0953c65
commit b3b83abb68
Signed by untrusted user: LizzyFleckenstein03
GPG Key ID: 06927A5199D6C9B2
1 changed files with 2 additions and 2 deletions

View File

@ -83,11 +83,11 @@ local function lay_down(player, pos, bed_pos, state, skip)
return false, S("You can't sleep, the bed's too far away!")
end
for _, other_pos in pairs(mcl_beds.bed_pos) do
--[[for _, other_pos in pairs(mcl_beds.bed_pos) do
if vector.distance(bed_pos2, other_pos) < 0.1 then
return false, S("This bed is already occupied!")
end
end
end]]
-- No sleeping while moving. Slightly different behaviour than in MC.
-- FIXME: Velocity threshold should be 0.01 but Minetest 5.3.0