This commit is contained in:
Lars Mueller 2022-01-14 20:33:49 +01:00
commit 59b6f18e89
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