1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-04 17:40:26 +01:00

Fix mana bar

- Fixed mana bar after last update
This commit is contained in:
LeMagnesium 2015-06-12 10:12:18 +02:00
parent 67ef5454ed
commit 17fab497e0
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
*~
*.od?#
*.patch
*.swp

View File

@ -288,7 +288,7 @@ else
function mana.hud_add(playername)
local player = minetest.get_player_by_name(playername)
id = player:hud_add({
player:hud_add({
hud_elem_type = "statbar",
position = {x=0.5,y=1},
size = {x=24, y=24},
@ -315,7 +315,7 @@ else
function mana.hud_update(playername)
local player = minetest.get_player_by_name(playername)
player:hud_change(mana.playerlist[playername].hudid, "text", mana.manastring(playername))
player:hud_change(mana.playerlist[playername].hudid, "number", mana.get(playername)/100)
end
function mana.hud_remove(playername)