mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
prevent empty maxExp and maxMP to be set.
This commit is contained in:
parent
e1c96f69d5
commit
950aa1264c
1 changed files with 7 additions and 2 deletions
|
|
@ -23,7 +23,10 @@ public class Stats extends PlayerMinStats{
|
|||
}
|
||||
|
||||
public void setToNextLevel(int toNextLevel) {
|
||||
this.toNextLevel = toNextLevel;
|
||||
if (toNextLevel != 0) {
|
||||
this.toNextLevel = toNextLevel;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaxHealth() {
|
||||
|
|
@ -39,7 +42,9 @@ public class Stats extends PlayerMinStats{
|
|||
}
|
||||
|
||||
public void setMaxMP(int maxMP) {
|
||||
this.maxMP = maxMP;
|
||||
if (maxMP != 0) {
|
||||
this.maxMP = maxMP;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue