From 43ef65261c35b5eb6ac01328db8e99c23866c38c Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 7 Oct 2022 09:03:10 +0200 Subject: [PATCH] Fixed XP not collecting after the first level --- .../minelittlepony/unicopia/entity/player/ManaContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java b/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java index 37dc8924..1139b66a 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/ManaContainer.java @@ -117,7 +117,7 @@ public class ManaContainer implements MagicReserves, Tickable, NbtSerialisable { float diff = value - get(); if (diff > 0) { if (pony.getLevel().canLevelUp()) { - xp.add(diff / (float)Math.pow(1000, 1 + pony.getLevel().get())); + xp.add(0.001F / pony.getLevel().get()); if (xp.getPercentFill() >= 1) { xp.set(0); pony.getLevel().add(1);