From f3c0eb1f06583145e64c3d154f8778339777140d Mon Sep 17 00:00:00 2001 From: Arufonsu <17498701+Arufonsu@users.noreply.github.com> Date: Sun, 10 Sep 2023 16:42:57 -0300 Subject: [PATCH] fix: entityExperienceToNextLevel as Long within EntityBox (#1899) --- Intersect.Client/Interface/Game/EntityPanel/EntityBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Intersect.Client/Interface/Game/EntityPanel/EntityBox.cs b/Intersect.Client/Interface/Game/EntityPanel/EntityBox.cs index d922179706..f7a498e929 100644 --- a/Intersect.Client/Interface/Game/EntityPanel/EntityBox.cs +++ b/Intersect.Client/Interface/Game/EntityPanel/EntityBox.cs @@ -801,7 +801,7 @@ private void UpdateXpBar(float elapsedTime, bool instant = false) float targetExpSize; var barDirectionSetting = ClientConfiguration.Instance.EntityBarDirections[(int)Vital.VitalCount]; var barPercentageSetting = Globals.Database.ShowExperienceAsPercentage; - var entityExperienceToNextLevel = (float)((Player)MyEntity).GetNextLevelExperience(); + var entityExperienceToNextLevel = ((Player)MyEntity).GetNextLevelExperience(); if (entityExperienceToNextLevel > 0) {