forked from LizzyFleckenstein03/Memeclone
Let players sleep in the same bed
This commit is contained in:
parent
13a0953c65
commit
b3b83abb68
|
@ -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!")
|
return false, S("You can't sleep, the bed's too far away!")
|
||||||
end
|
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
|
if vector.distance(bed_pos2, other_pos) < 0.1 then
|
||||||
return false, S("This bed is already occupied!")
|
return false, S("This bed is already occupied!")
|
||||||
end
|
end
|
||||||
end
|
end]]
|
||||||
|
|
||||||
-- No sleeping while moving. Slightly different behaviour than in MC.
|
-- No sleeping while moving. Slightly different behaviour than in MC.
|
||||||
-- FIXME: Velocity threshold should be 0.01 but Minetest 5.3.0
|
-- FIXME: Velocity threshold should be 0.01 but Minetest 5.3.0
|
||||||
|
|
Loading…
Reference in New Issue