Skip to content

Commit

Permalink
Support for 1.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Aug 12, 2020
1 parent f5194f0 commit 8ab9130
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 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>Bookshelf</groupId>
<artifactId>Bookshelf</artifactId>
<version>2.6.5</version>
<version>2.6.6</version>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
Expand All @@ -13,6 +13,7 @@
<excludes>
<exclude>**/*.java</exclude>
</excludes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
Expand Down
5 changes: 4 additions & 1 deletion src/com/loohp/bookshelf/Utils/MCVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public enum MCVersion {

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

public static MCVersion fromPackageName(String packageName) {
if (packageName.contains("1_16_R1")) {
if (packageName.contains("1_16_R2")) {
return V1_16_2;
} else if (packageName.contains("1_16_R1")) {
return V1_16;
} else if (packageName.contains("1_15_R1")) {
return V1_15;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: BookShelf
author: loohp
version: 2.6.5
version: ${project.version}
main: com.loohp.bookshelf.Bookshelf
api-version: 1.13
description: Actual BookShelf in Minecraft
Expand Down

0 comments on commit 8ab9130

Please sign in to comment.