[HUDBars] Only one main loop needed (step timer)

IRC @Mg Comment
This commit is contained in:
Coethium 2016-08-16 01:28:01 +02:00
parent fcd3368cfd
commit 453ea91778
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,6 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
hb.hudbars_count= hb.hudbars_count + 1
hb.hudtables[identifier] = hudtable
minetest.after(0, hb_step)
end
function hb.init_hudbar(player, identifier, start_value, start_max, start_hidden)
@ -361,6 +360,8 @@ minetest.register_on_joinplayer(function(player)
-- hb.players[name] = player
end)
minetest.after(0, hb_step)
--[[
minetest.register_on_leaveplayer(function(player)
hb.players[player:get_player_name()] = nil