mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-04-01 00:35:29 +02: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));
|
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 {
|
class XpCollectingBar extends BarInst {
|
||||||
|
|
Loading…
Add table
Reference in a new issue