mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-25 16:45:03 -04:00
Merge branch 'master' of https://github.com/minetest/minetest_game
This commit is contained in:
commit
59b6f18e89
113 changed files with 1620 additions and 392 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue