Skip to content
Snippets Groups Projects
Unverified Commit e3cd961a authored by Paramat's avatar Paramat Committed by GitHub
Browse files

Fix beds being undiggable after laying down

parent eaf6eac7
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,7 @@ local function lay_down(player, pos, bed_pos, state, skip) ...@@ -59,6 +59,7 @@ local function lay_down(player, pos, bed_pos, state, skip)
if state ~= nil and not state then if state ~= nil and not state then
local p = beds.pos[name] or nil local p = beds.pos[name] or nil
beds.player[name] = nil beds.player[name] = nil
beds.bed_position[name] = nil
-- skip here to prevent sending player specific changes (used for leaving players) -- skip here to prevent sending player specific changes (used for leaving players)
if skip then if skip then
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment