Skip to content

Commit

Permalink
修复Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
0XPYEX0 committed Feb 8, 2022
1 parent 4a76c44 commit b8c1f52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class EXPLevelEnergy implements FlyEnergy {
@Override
public @NotNull String getName() {
return "EXPLevel";
return "ExpLevel";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
public class EXPPointEnergy implements FlyEnergy {
@Override
public @NotNull String getName() {
return "EXPPoint";
return "ExpPoint";
}

@Override
public void cost(@NotNull Player target, @NotNull Number value) {
target.offer(Keys.TOTAL_EXPERIENCE, Math.max(getNow(target) - value.intValue(), 0));
target.offer(Keys.EXPERIENCE_SINCE_LEVEL, Math.max(getNow(target) - value.intValue(), 0));
}

@Override
public @NotNull Integer getNow(Player target) {
return target.get(Keys.TOTAL_EXPERIENCE).get();
return target.get(Keys.EXPERIENCE_SINCE_LEVEL).get();
}

@Override
Expand Down

0 comments on commit b8c1f52

Please sign in to comment.