3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Remove some more debug messages

Dieser Commit ist enthalten in:
Matsv 2016-10-02 11:41:18 +02:00
Ursprung 975743c76f
Commit 3354a46283
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 97CEC2A2EA31350F
2 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -186,7 +186,6 @@ public class BungeePlugin extends Plugin implements ViaPlatform, Listener {
Object handshake = ReflectionUtil.invoke(pendingConnection, "getHandshake"); Object handshake = ReflectionUtil.invoke(pendingConnection, "getHandshake");
Method setProtocol = handshake.getClass().getDeclaredMethod("setProtocolVersion", int.class); Method setProtocol = handshake.getClass().getDeclaredMethod("setProtocolVersion", int.class);
setProtocol.invoke(handshake, protocols == null ? user.get(ProtocolInfo.class).getProtocolVersion() : protocolId); setProtocol.invoke(handshake, protocols == null ? user.get(ProtocolInfo.class).getProtocolVersion() : protocolId);
System.out.println("Changed server protocol id " + protocolId + " clientProtocol:" + user.get(ProtocolInfo.class).getProtocolVersion() + " path:" + protocols);
} catch (NoSuchMethodException | InvocationTargetException e1) { } catch (NoSuchMethodException | InvocationTargetException e1) {
e1.printStackTrace(); e1.printStackTrace();
} }

Datei anzeigen

@ -114,7 +114,6 @@ public class BungeeEncodeHandler extends MessageToMessageEncoder<ByteBuf> {
ProtocolInfo info = viaConnection.get(ProtocolInfo.class); ProtocolInfo info = viaConnection.get(ProtocolInfo.class);
// Refresh the pipes // Refresh the pipes
List<Pair<Integer, Protocol>> protocols = ProtocolRegistry.getProtocolPath(info.getProtocolVersion(), protocolId); List<Pair<Integer, Protocol>> protocols = ProtocolRegistry.getProtocolPath(info.getProtocolVersion(), protocolId);
System.out.println(info.getProtocolVersion() + ">" + protocolId + " " + protocols);
ProtocolPipeline pipeline = viaConnection.get(ProtocolInfo.class).getPipeline(); ProtocolPipeline pipeline = viaConnection.get(ProtocolInfo.class).getPipeline();
viaConnection.clearStoredObjects(); viaConnection.clearStoredObjects();