Fix mana resetting for re-joining players

This commit is contained in:
Wuzzy 2015-03-31 23:35:18 +02:00
parent ff247cc261
commit f6157dbc64

View File

@ -204,8 +204,10 @@ end)
minetest.register_on_leaveplayer(function(player)
local playername = player:get_player_name()
if not minetest.get_modpath("hudbars") ~= nil then
mana.hud_remove(playername)
mana.playerlist[playername] = nil
end
mana.save_to_file()
end)
minetest.register_on_shutdown(function()