mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
Check for attachments
This commit is contained in:
parent
42baede13f
commit
84df4274cc
1 changed files with 5 additions and 0 deletions
|
@ -102,6 +102,11 @@ local function lay_down(player, pos, bed_pos, state, skip)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Check if player is attached to an object
|
||||||
|
if player:get_attach() then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
if beds.player[name] then
|
if beds.player[name] then
|
||||||
-- player already in bed, do nothing
|
-- player already in bed, do nothing
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Reference in a new issue