Skip to content

Commit

Permalink
Fix beds being undiggable after laying down
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Mar 23, 2019
1 parent eaf6eac commit e3cd961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mods/beds/functions.lua
Expand Up @@ -59,6 +59,7 @@ local function lay_down(player, pos, bed_pos, state, skip)
if state ~= nil and not state then
local p = beds.pos[name] or nil
beds.player[name] = nil
beds.bed_position[name] = nil
-- skip here to prevent sending player specific changes (used for leaving players)
if skip then
return
Expand Down

0 comments on commit e3cd961

Please sign in to comment.