mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed infinite loop when gaining mana from experience levelling
This commit is contained in:
parent
3fa9f68bd8
commit
c84d938a8b
1 changed files with 0 additions and 4 deletions
|
@ -118,10 +118,6 @@ public class ManaContainer implements MagicReserves, Tickable, NbtSerialisable {
|
|||
if (diff > 0) {
|
||||
if (pony.getLevel().canLevelUp()) {
|
||||
xp.add(0.001F / pony.getLevel().get());
|
||||
if (xp.getPercentFill() >= 1) {
|
||||
xp.set(0);
|
||||
pony.getLevel().add(1);
|
||||
}
|
||||
}
|
||||
|
||||
value = get() + diff / (1 + pony.getLevel().get());
|
||||
|
|
Loading…
Reference in a new issue