fixed being able to get in/out of beds while in another bed

This commit is contained in:
kaadmy 2015-11-08 10:39:54 -08:00
parent a013682de2
commit 5a53cb0074

View File

@ -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)