mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fix crash when levelling up
This commit is contained in:
parent
d9933bb3ec
commit
8fe3e9ec62
1 changed files with 1 additions and 1 deletions
|
@ -89,8 +89,8 @@ public class ManaContainer implements MagicReserves, Tickable {
|
||||||
if (pony.getLevel().canLevelUp()) {
|
if (pony.getLevel().canLevelUp()) {
|
||||||
xp.add(diff / (float)Math.pow(1000, 1 + pony.getLevel().get()));
|
xp.add(diff / (float)Math.pow(1000, 1 + pony.getLevel().get()));
|
||||||
if (xp.getPercentFill() >= 1) {
|
if (xp.getPercentFill() >= 1) {
|
||||||
pony.getLevel().add(1);
|
|
||||||
xp.set(0);
|
xp.set(0);
|
||||||
|
pony.getLevel().add(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue