From 0ba50c80e5a66949f3fe17303e55c0be970d48f9 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 14 Sep 2021 21:14:15 +0200 Subject: [PATCH] Hotfix tinyprotocol --- .../src/com/comphenix/tinyprotocol/TinyProtocol.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java b/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java index 8dc6ea3..3d2e41a 100644 --- a/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java +++ b/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java @@ -47,7 +47,7 @@ public abstract class TinyProtocol { MethodInvoker networkMarkers; try { networkMarkers = Reflection.getTypedMethod(serverConnectionClass, null, List.class, serverConnectionClass); - } catch (IllegalStateException e) { + } catch (IllegalStateException e) { // Paper, wtf why. networkMarkers = Reflection.getTypedMethod(serverConnectionClass, null, Queue.class, serverConnectionClass); } getNetworkMarkers = networkMarkers; @@ -65,7 +65,7 @@ public abstract class TinyProtocol { private Set uninjectedChannels = Collections.newSetFromMap(new MapMaker().weakKeys().makeMap()); // List of network markers - private List networkManagers; + private Collection networkManagers; // Injected channel handlers private List serverChannels = Lists.newArrayList(); @@ -196,7 +196,7 @@ public abstract class TinyProtocol { boolean looking = true; // We need to synchronize against this list - networkManagers = (List) getNetworkMarkers.invoke(null, serverConnection); + networkManagers = (Collection) getNetworkMarkers.invoke(null, serverConnection); createServerChannelHandler(); // Find the correct list, or implicitly throw an exception