mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Update ViaVersion api usage (#4386)
- Switch to fluent accessor, since the getter was removed after being deprecated for 3 years
This commit is contained in:
parent
7613bdbafe
commit
3288f422b1
2 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ public class GeyserSpigotInjector extends GeyserInjector {
|
||||||
childHandler = (ChannelInitializer<Channel>) childHandlerField.get(handler);
|
childHandler = (ChannelInitializer<Channel>) childHandlerField.get(handler);
|
||||||
// ViaVersion non-Paper-injector workaround so we aren't double-injecting
|
// ViaVersion non-Paper-injector workaround so we aren't double-injecting
|
||||||
if (isViaVersion && childHandler instanceof BukkitChannelInitializer) {
|
if (isViaVersion && childHandler instanceof BukkitChannelInitializer) {
|
||||||
childHandler = ((BukkitChannelInitializer) childHandler).getOriginal();
|
childHandler = ((BukkitChannelInitializer) childHandler).original();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ log4j = "2.20.0"
|
||||||
jline = "3.21.0"
|
jline = "3.21.0"
|
||||||
terminalconsoleappender = "1.2.0"
|
terminalconsoleappender = "1.2.0"
|
||||||
folia = "1.19.4-R0.1-SNAPSHOT"
|
folia = "1.19.4-R0.1-SNAPSHOT"
|
||||||
viaversion = "4.0.0"
|
viaversion = "4.9.2"
|
||||||
adapters = "1.11-SNAPSHOT"
|
adapters = "1.11-SNAPSHOT"
|
||||||
commodore = "2.2"
|
commodore = "2.2"
|
||||||
bungeecord = "a7c6ede"
|
bungeecord = "a7c6ede"
|
||||||
|
|
Loading…
Reference in a new issue