Skip to content

Commit e56bcf6

Browse files
authored
Added support for Minecraft 1.21.8 (#3523)
1 parent 596e5e4 commit e56bcf6

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
group = "com.comphenix.protocol"
1313
description = "Provides access to the Minecraft protocol"
1414

15-
val mcVersion = "1.21.6"
15+
val mcVersion = "1.21.7"
1616
val isSnapshot = version.toString().endsWith("-SNAPSHOT")
1717
val buildNumber = System.getenv("BUILD_NUMBER") ?: ""
1818
val isJenkins = buildNumber.isNotEmpty()
@@ -205,4 +205,4 @@ publishing {
205205
}
206206
}
207207
}
208-
}
208+
}

src/main/java/com/comphenix/protocol/ProtocolLibrary.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public class ProtocolLibrary {
3535
/**
3636
* The maximum version ProtocolLib has been tested with.
3737
*/
38-
public static final String MAXIMUM_MINECRAFT_VERSION = "1.21.5";
38+
public static final String MAXIMUM_MINECRAFT_VERSION = "1.21.8";
3939

4040
/**
41-
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.21.5) was released.
41+
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.21.8) was released.
4242
*/
43-
public static final String MINECRAFT_LAST_RELEASE_DATE = "2025-03-25";
43+
public static final String MINECRAFT_LAST_RELEASE_DATE = "2025-07-17";
4444

4545
private static Plugin plugin;
4646
private static ProtocolConfig config;

src/main/java/com/comphenix/protocol/injector/packet/internal/ProtocolInfoWrapper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class ProtocolInfoWrapper extends AbstractWrapper {
3131
static {
3232
SIMPLE_UNBOUND_PROTOCOL_CLASS = MinecraftReflection.getMinecraftClass(
3333
"network.protocol.SimpleUnboundProtocol" /* 1.21.5+ */,
34+
"network.protocol.UnboundProtocol" /* 1.21.8+ Alternative */,
3435
"network.ProtocolInfo$a" /* Spigot Mappings */,
3536
"network.ProtocolInfo$Unbound" /* Mojang Mappings */);
3637
BIND_SIMPLE_ACCESSOR = Accessors.getMethodAccessor(FuzzyReflection.fromClass(SIMPLE_UNBOUND_PROTOCOL_CLASS)

src/main/java/com/comphenix/protocol/utility/MinecraftProtocolVersion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ private static NavigableMap<MinecraftVersion, Integer> createLookup() {
9494

9595
map.put(new MinecraftVersion(1, 21, 0), 767);
9696
map.put(new MinecraftVersion(1, 21, 2), 768);
97+
map.put(new MinecraftVersion(1, 21, 6), 771);
98+
map.put(new MinecraftVersion(1, 21, 8), 772);
9799
return map;
98100
}
99101

0 commit comments

Comments
 (0)