Skip to content

Commit

Permalink
3.2.1 1.16.4 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Nov 5, 2020
1 parent 51c6611 commit 94e2738
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
Expand Down
13 changes: 12 additions & 1 deletion src/com/loohp/interactivechat/Utils/MCVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public enum MCVersion {

V1_16_4("1.16.4"),
V1_16_2("1.16.2"),
V1_16("1.16"),
V1_15("1.15"),
Expand Down Expand Up @@ -52,7 +53,9 @@ public enum MCVersion {
}

public static MCVersion fromPackageName(String packageName) {
if (packageName.contains("1_16_R2")) {
if (packageName.contains("1_16_R3")) {
return V1_16_4;
} else if (packageName.contains("1_16_R2")) {
return V1_16_2;
} else if (packageName.contains("1_16_R1")) {
return V1_16;
Expand Down Expand Up @@ -105,5 +108,13 @@ public boolean isSupported() {
public boolean isPost1_16() {
return this.ordinal() <= MCVersion.V1_16.ordinal();
}

public boolean isPost1_15() {
return this.ordinal() <= MCVersion.V1_15.ordinal();
}

public boolean isPost1_14() {
return this.ordinal() <= MCVersion.V1_14.ordinal();
}

}

0 comments on commit 94e2738

Please sign in to comment.