From 6c37e89f08f962eaba788a31f5d3c798ceaa65e6 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 11 May 2014 00:35:31 +0200 Subject: 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 --- builtin/game/statbars.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'builtin/game') diff --git a/builtin/game/statbars.lua b/builtin/game/statbars.lua index ccc192ba4..c0d49332f 100644 --- a/builtin/game/statbars.lua +++ b/builtin/game/statbars.lua @@ -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 -- cgit v1.2.3