1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-04 07:30:23 +02:00
This commit is contained in:
Lars Mueller
2022-01-14 20:33:49 +01:00
113 changed files with 1620 additions and 392 deletions

View File

@ -102,6 +102,11 @@ local function lay_down(player, pos, bed_pos, state, skip)
return false
end
-- Check if player is attached to an object
if player:get_attach() then
return false
end
if beds.player[name] then
-- player already in bed, do nothing
return false