From e3cd961a15e12388a617c7130b78dddcf6548ffb Mon Sep 17 00:00:00 2001
From: Paramat <paramat@users.noreply.github.com>
Date: Sat, 23 Mar 2019 23:12:44 +0000
Subject: [PATCH] Fix beds being undiggable after laying down

---
 mods/beds/functions.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mods/beds/functions.lua b/mods/beds/functions.lua
index 64c6288e..ae632a98 100644
--- a/mods/beds/functions.lua
+++ b/mods/beds/functions.lua
@@ -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
-- 
GitLab