From 4ab02cb63695565401039f5391081247832a3ba0 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 15 May 2019 19:02:31 -0400 Subject: [PATCH] Clean this up a bit --- .../proxy/connection/backend/BackendPlaySessionHandler.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BackendPlaySessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BackendPlaySessionHandler.java index 055e5a7d0..7515c049d 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BackendPlaySessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BackendPlaySessionHandler.java @@ -95,12 +95,10 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler { // the client. if (PluginMessageUtil.isRegister(packet)) { serverConn.getPlayer().getKnownChannels().addAll(PluginMessageUtil.getChannels(packet)); - serverConn.getPlayer().getMinecraftConnection().write(packet); - return true; + return false; } else if (PluginMessageUtil.isUnregister(packet)) { serverConn.getPlayer().getKnownChannels().removeAll(PluginMessageUtil.getChannels(packet)); - serverConn.getPlayer().getMinecraftConnection().write(packet); - return true; + return false; } if (PluginMessageUtil.isMcBrand(packet)) {