Fix beds being undiggable after laying down

This commit is contained in:
Paramat 2019-03-23 23:12:44 +00:00 committed by GitHub
parent eaf6eac723
commit e3cd961a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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