Skip to content

Commit

Permalink
[1.0.6.12] handle 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 authored Apr 30, 2024
1 parent e70a457 commit 813c54c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defaultTasks 'clean', 'screamCompile'

allprojects {
group = 'org.screamingsandals.simpleinventories'
version = '1.0.6.11'
version = '1.0.6.12'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,11 @@ public static enum VTATranslate {
for (int i = 0; i < 2; i++) {
versionNumber += Integer.parseInt(bukkitVersion[i]) * (i == 0 ? 100 : 1);
}
if (versionNumber == 120 && bukkitVersion.length > 2 && "5".equals(bukkitVersion[2])) {
v1_20_5 = true;
}
try {
if (versionNumber == 120 && bukkitVersion.length > 2 && Integer.parseInt(bukkitVersion[2]) >= 5) {
v1_20_5 = true;
}
} catch (NumberFormatException ignored) {}

isLegacy = versionNumber < 113;
}
Expand Down

0 comments on commit 813c54c

Please sign in to comment.