Skip to content

Commit

Permalink
Adding 1.19 to ProtocolVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
funkemunky committed Jun 17, 2022
1 parent e420bdf commit b121340
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ local.properties
.settings/
.loadpath
.recommenders
*.iml


# External tool builders
.externalToolBuilders/
Expand Down
28 changes: 8 additions & 20 deletions AtlasParent/Atlas/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,22 +208,22 @@
<version>8.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.github.spigot</groupId>
<artifactId>1.17.1</artifactId>
<version>1.17.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.18-R0.1</version>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18-R0.1</version>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.github.spigot</groupId>
<artifactId>1.17.1</artifactId>
<version>1.17.1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -245,18 +245,6 @@
<version>2.9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.18.2-R0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.2-R0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>co.aikar</groupId>
<artifactId>acf-bukkit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public enum ProtocolVersion {
v1_17_1(756, "v1_17_R1"),
v1_18(757, "v1_18_R1"),
v1_18_2(758, "v1_18_R2"),
v1_19(759, "v1_19_R1"),

UNKNOWN(-1, "UNKNOWN");

Expand All @@ -79,6 +80,10 @@ private static ProtocolVersion fetchGameVersion() {
String version = mv.getFieldByType(String.class, 1).get(mvObject);

switch(version) {
case "1.19": {
toReturn = v1_19;
break;
}
case "1.18.2": {
toReturn = v1_18_2;
break;
Expand Down

0 comments on commit b121340

Please sign in to comment.