From 99741f3d2a7b2a0a0323b55ab53d5d4033242291 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 20 Feb 2019 21:03:25 +0100 Subject: [PATCH] Beds: Update formspecs when player leaves/joins --- mods/ITEMS/mcl_beds/functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 6824cabe89..018cf74f11 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -349,6 +349,7 @@ minetest.register_on_joinplayer(function(player) end playerphysics.remove_physics_factor(player, "speed", "mcl_beds:sleeping") playerphysics.remove_physics_factor(player, "jump", "mcl_beds:sleeping") + update_formspecs(false) end) minetest.register_on_leaveplayer(function(player) @@ -363,6 +364,7 @@ minetest.register_on_leaveplayer(function(player) end end) end + update_formspecs(false) end) minetest.register_on_player_receive_fields(function(player, formname, fields)