mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
[HUDBars] Only one main loop needed (step timer)
IRC @Mg Comment
This commit is contained in:
parent
fcd3368cfd
commit
453ea91778
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user