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:
chris 2024-01-12 15:39:53 +01:00 committed by GitHub
parent 7613bdbafe
commit 3288f422b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ public class GeyserSpigotInjector extends GeyserInjector {
childHandler = (ChannelInitializer<Channel>) 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) {