Skip to content

Commit

Permalink
static levels always requiring max long
Browse files Browse the repository at this point in the history
Fixes #631
  • Loading branch information
Caltinor committed Jan 9, 2025
1 parent d0d7f11 commit e4fa65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/harmonised/pmmo/storage/Experience.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void decrement() {
public static long getXpForNextLevel(long level) {
List<Long> staticLvls = Config.server().levels().staticLevels();
if (staticLvls.get(0) != -1)
return staticLvls.size() < level ? staticLvls.get((int)level) : Long.MAX_VALUE;
return staticLvls.size() > level ? staticLvls.get((int)level) : Long.MAX_VALUE;
long min = Config.server().levels().xpMin();
double base = Config.server().levels().xpBase();
double lvl = Config.server().levels().perLevel();
Expand Down

0 comments on commit e4fa65a

Please sign in to comment.