From 3288f422b19d1eb65cbca8b36f8eb6aa4db8f582 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 12 Jan 2024 15:39:53 +0100 Subject: [PATCH] Update ViaVersion api usage (#4386) - Switch to fluent accessor, since the getter was removed after being deprecated for 3 years --- .../geysermc/geyser/platform/spigot/GeyserSpigotInjector.java | 2 +- gradle/libs.versions.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/GeyserSpigotInjector.java b/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/GeyserSpigotInjector.java index 01bc0bea4..ad31131bd 100644 --- a/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/GeyserSpigotInjector.java +++ b/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/GeyserSpigotInjector.java @@ -150,7 +150,7 @@ public class GeyserSpigotInjector extends GeyserInjector { childHandler = (ChannelInitializer) childHandlerField.get(handler); // ViaVersion non-Paper-injector workaround so we aren't double-injecting if (isViaVersion && childHandler instanceof BukkitChannelInitializer) { - childHandler = ((BukkitChannelInitializer) childHandler).getOriginal(); + childHandler = ((BukkitChannelInitializer) childHandler).original(); } break; } catch (Exception e) { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c71aa715f..9e6eeca1d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -23,7 +23,7 @@ log4j = "2.20.0" jline = "3.21.0" terminalconsoleappender = "1.2.0" folia = "1.19.4-R0.1-SNAPSHOT" -viaversion = "4.0.0" +viaversion = "4.9.2" adapters = "1.11-SNAPSHOT" commodore = "2.2" bungeecord = "a7c6ede"