1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix old client showing duplicated health bar on new server

Fix client not showing hearts and bubbles on connecting to old server
Fix server not remembering hud flags correctly
This commit is contained in:
sapier 2014-05-11 00:35:31 +02:00
parent 167df02e3d
commit 6c37e89f08
3 changed files with 25 additions and 0 deletions

View file

@ -37,6 +37,9 @@ local function initialize_builtin_statbars(player)
if (hud_ids[name] == nil) then
hud_ids[name] = {}
-- flags are not transmitted to client on connect, we need to make sure
-- our current flags are transmitted by sending them actively
player:hud_set_flags(player:hud_get_flags())
end
if player:hud_get_flags().healthbar and