0
0
Fork 0

Fix XP bar overflow after enchant

This commit is contained in:
Wuzzy 2020-12-28 15:32:24 +01:00
parent a4b2172ac5
commit e8573189d8
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ function mcl_experience.set_player_xp_level(player,level)
return
end
pool[name].level = level
pool[name].xp, pool[name].bar_step, pool[name].next_level = mcl_experience.bar_to_xp(pool[name].bar, level)
pool[name].xp, pool[name].bar_step, pool[name].xp_next_level = mcl_experience.bar_to_xp(pool[name].bar, level)
hud_manager.change_hud({player = player, hud_name = "xp_level", element = "text", data = tostring(level)})
-- we may don't update the bar
end