Fix beds being undiggable after laying down
authorParamat <paramat@users.noreply.github.com>
Sat, 23 Mar 2019 23:12:44 +0000 (23:12 +0000)
committerGitHub <noreply@github.com>
Sat, 23 Mar 2019 23:12:44 +0000 (23:12 +0000)
mods/beds/functions.lua

index 64c6288ebe3a7f494cde6e3b3df68703bda930b3..ae632a989d4267c4ddd92fdced0eea19f3d09751 100644 (file)
@@ -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