3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Clean this up a bit

Dieser Commit ist enthalten in:
Andrew Steinborn 2019-05-15 19:02:31 -04:00
Ursprung a21eaa085a
Commit 4ab02cb636

Datei anzeigen

@ -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)) {