mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed XP not collecting after the first level
This commit is contained in:
parent
a01466cf01
commit
43ef65261c
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ public class ManaContainer implements MagicReserves, Tickable, NbtSerialisable {
|
||||||
float diff = value - get();
|
float diff = value - get();
|
||||||
if (diff > 0) {
|
if (diff > 0) {
|
||||||
if (pony.getLevel().canLevelUp()) {
|
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) {
|
if (xp.getPercentFill() >= 1) {
|
||||||
xp.set(0);
|
xp.set(0);
|
||||||
pony.getLevel().add(1);
|
pony.getLevel().add(1);
|
||||||
|
|
Loading…
Reference in a new issue