Skip to content

Commit

Permalink
fix: Wrong variable in apiVersionForMcVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltotore committed Jan 30, 2023
1 parent 1fd8b5f commit 9cd4abd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void apiVersion(String apiVersion) {

public void apiVersionForMcVersion(String mcVersion) {
int version = Integer.parseInt(mcVersion.split("\\.")[1]);
this.apiVersion = Optional.ofNullable(mcVersion < 9 ? null : "1." + version);
this.apiVersion = Optional.ofNullable(version < 9 ? null : "1." + version);
}

public enum Load {
Expand Down

0 comments on commit 9cd4abd

Please sign in to comment.