From b3b83abb68968e7b188101d490d51bb9f92b5d64 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 27 Jan 2022 20:09:16 +0100 Subject: [PATCH] Let players sleep in the same bed --- mods/ITEMS/mcl_beds/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index b8478fc1..cafcda76 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -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