mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 06:32:25 +01:00
Fix beds being undiggable after laying down
This commit is contained in:
parent
eaf6eac723
commit
e3cd961a15
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user