From 48241ba841eee95d4f23ad5de5eb8d560d63c183 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sun, 18 Feb 2024 19:32:55 +0100 Subject: [PATCH] Fix Bungee server change --- .../viaversion/bungee/handlers/BungeeServerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java b/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java index 67cf34f1c..25b039ae2 100644 --- a/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java +++ b/bungee/src/main/java/com/viaversion/viaversion/bungee/handlers/BungeeServerHandler.java @@ -283,9 +283,9 @@ public class BungeeServerHandler implements Listener { } Object wrapper = channelWrapper.get(player); - setVersion.invoke(wrapper, serverProtocolVersion); + setVersion.invoke(wrapper, serverProtocolVersion.getVersion()); - Object entityMap = getEntityMap.invoke(null, serverProtocolVersion); + Object entityMap = getEntityMap.invoke(null, serverProtocolVersion.getVersion()); entityRewrite.set(player, entityMap); } }