mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Fix XP bar overflow after enchant
This commit is contained in:
parent
a4b2172ac5
commit
e8573189d8
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ function mcl_experience.set_player_xp_level(player,level)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
pool[name].level = level
|
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)})
|
hud_manager.change_hud({player = player, hud_name = "xp_level", element = "text", data = tostring(level)})
|
||||||
-- we may don't update the bar
|
-- we may don't update the bar
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue