mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed levels not increasing when XP is full
This commit is contained in:
parent
3ba4040bb9
commit
ab017ded6e
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue