Skip to content

Commit

Permalink
fix(6.2.5): incorrect server version detecting on 1.20.2 (closes #57)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatCoderr committed Oct 29, 2023
1 parent 09bf971 commit 13a387a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ or [maven-shade-plugin](https://maven.apache.org/plugins/maven-shade-plugin/) (f
<dependency>
<groupId>me.catcoder</groupId>
<artifactId>bukkit-sidebar</artifactId>
<version>6.2.4-SNAPSHOT</version>
<version>6.2.5-SNAPSHOT</version>
</dependency>
```

Expand All @@ -74,7 +74,7 @@ repositories {
```
```groovy
dependencies {
implementation 'me.catcoder:bukkit-sidebar:6.2.4-SNAPSHOT'
implementation 'me.catcoder:bukkit-sidebar:6.2.5-SNAPSHOT'
}
```

Expand All @@ -87,7 +87,7 @@ repositories {
```
```kotlin
dependencies {
implementation("me.catcoder:bukkit-sidebar:6.2.4-SNAPSHOT")
implementation("me.catcoder:bukkit-sidebar:6.2.5-SNAPSHOT")
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "me.catcoder"
version = "6.2.4-SNAPSHOT"
version = "6.2.5-SNAPSHOT"
description = "Powerful feature-packed Minecraft scoreboard library"

extra["sonatypeUsername"] = System.getenv("SONATYPE_USERNAME")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class ProtocolConstants {
public static final int MINECRAFT_1_19_4 = 762;

public static final int MINECRAFT_1_20 = 763;
public static final int MINECRAFT_1_20_1 = 763;
public static final int MINECRAFT_1_20_2 = 764;

public static final int MINIMUM_SUPPORTED_VERSION = MINECRAFT_1_12_2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ private static NavigableMap<MinecraftVersion, Integer> createLookup() {
map.put(new MinecraftVersion(1, 19, 4), ProtocolConstants.MINECRAFT_1_19_4);

map.put(new MinecraftVersion(1, 20, 0), ProtocolConstants.MINECRAFT_1_20);
map.put(new MinecraftVersion(1, 20, 1), ProtocolConstants.MINECRAFT_1_20_1);

map.put(new MinecraftVersion(1, 20, 2), ProtocolConstants.MINECRAFT_1_20_2);

return map;
}
Expand Down

0 comments on commit 13a387a

Please sign in to comment.