mirror of
git://repo.or.cz/minetest_mana.git
synced 2024-11-15 23:00:20 +01:00
Revert "Add proper function to initialize HUD bar"
This reverts commit cd0c0a51d2
.
This commit is contained in:
parent
cd0c0a51d2
commit
4275a72189
4
init.lua
4
init.lua
|
@ -226,7 +226,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
end
|
||||
|
||||
if minetest.get_modpath("hudbars") ~= nil then
|
||||
hud.init_hudbar(player, "mana", mana.get(playername), mana.getmax(playername))
|
||||
hud.hudtables.mana.add_all(player, mana.get(playername), mana.getmax(playername))
|
||||
else
|
||||
mana.hud_add(playername)
|
||||
end
|
||||
|
@ -243,7 +243,7 @@ if minetest.get_modpath("hudbars") ~= nil then
|
|||
|
||||
function mana.hud_update(playername)
|
||||
local player = minetest.get_player_by_name(playername)
|
||||
hud.change_hudbar(player, "mana", mana.get(playername), mana.getmax(playername))
|
||||
hud.change_hudbar(player, hud.hudtables.mana, mana.get(playername), mana.getmax(playername))
|
||||
end
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user