1
0
Fork 0

Beds: Update formspecs when player leaves/joins

This commit is contained in:
Wuzzy 2019-02-20 21:03:25 +01:00
parent 686b575f81
commit 99741f3d2a
1 changed files with 2 additions and 0 deletions

View File

@ -349,6 +349,7 @@ minetest.register_on_joinplayer(function(player)
end end
playerphysics.remove_physics_factor(player, "speed", "mcl_beds:sleeping") playerphysics.remove_physics_factor(player, "speed", "mcl_beds:sleeping")
playerphysics.remove_physics_factor(player, "jump", "mcl_beds:sleeping") playerphysics.remove_physics_factor(player, "jump", "mcl_beds:sleeping")
update_formspecs(false)
end) end)
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)
@ -363,6 +364,7 @@ minetest.register_on_leaveplayer(function(player)
end end
end) end)
end end
update_formspecs(false)
end) end)
minetest.register_on_player_receive_fields(function(player, formname, fields) minetest.register_on_player_receive_fields(function(player, formname, fields)