Skip to content

Commit dda5fb6

Browse files
authored
feat: Anvil Input MC 1.21.6/1.21.7 support (#764)
1 parent 882f935 commit dda5fb6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/paper/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tasks.shadowJar {
2525

2626
tasks.runServer {
2727
jvmArgs("-Dme.devnatan.inventoryframework.debug=true")
28-
minecraftVersion("1.21.4")
28+
minecraftVersion("1.21.7")
2929
}
3030

3131
bukkit {

inventory-framework-platform-bukkit/src/main/java/me/devnatan/inventoryframework/runtime/thirdparty/ReflectionUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ public static String getVersionInformation() {
176176

177177
try {
178178
connection = lookup.findGetter(
179-
ENTITY_PLAYER, v(21, 3, "f").v(20, "c").v(17, "b").orElse("playerConnection"), playerConnection);
179+
ENTITY_PLAYER,
180+
v(21, 3, "f").v(20, "c").v(17, "b").v(21, 6, "g").orElse("playerConnection"),
181+
playerConnection);
180182

181183
getHandle = lookup.findVirtual(CRAFT_PLAYER, "getHandle", MethodType.methodType(ENTITY_PLAYER));
182184

0 commit comments

Comments
 (0)