From 5a53cb0074fedd4d684b829bf803ed77f5ffdc07 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sun, 8 Nov 2015 10:39:54 -0800 Subject: [PATCH] fixed being able to get in/out of beds while in another bed --- mods/bed/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/bed/init.lua b/mods/bed/init.lua index 7e019af..a5fd4fe 100644 --- a/mods/bed/init.lua +++ b/mods/bed/init.lua @@ -71,7 +71,7 @@ minetest.register_node( default.player_attached[name] = false meta:set_string("player", "") - elseif meta:get_string("player") == "" then + elseif meta:get_string("player") == "" and not default.player_attached[name] and players_in_bed[name] == nil then put_pos.y = put_pos.y + 0.6 clicker:setpos(put_pos)