Fixed levels not increasing when XP is full

This commit is contained in:
Sollace 2022-09-16 22:13:18 +02:00
parent 3ba4040bb9
commit ab017ded6e

View file

@ -94,6 +94,11 @@ public class ManaContainer implements MagicReserves, Tickable, NbtSerialisable {
mana.add((mana.getMax() / 10F) * Math.max(1, pony.getLevel().get() * 4));
}
}
if (xp.getPercentFill() >= 1) {
xp.set(0);
pony.getLevel().add(1);
}
}
class XpCollectingBar extends BarInst {