forked from mtcontrib/minetest_mana
Fix crash with hudbars when player leaving server
This commit is contained in:
parent
36db3d72ac
commit
ff247cc261
3
init.lua
3
init.lua
@ -268,6 +268,9 @@ if minetest.get_modpath("hudbars") ~= nil then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function mana.hud_remove(playername)
|
||||||
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
function mana.manastring(playername)
|
function mana.manastring(playername)
|
||||||
return string.format("Mana: %d/%d", mana.get(playername), mana.getmax(playername))
|
return string.format("Mana: %d/%d", mana.get(playername), mana.getmax(playername))
|
||||||
|
Loading…
Reference in New Issue
Block a user