From b4a14ed5ec3c838a3b04b3032d3f8b2a1166da93 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 23 Aug 2022 12:52:20 +0200 Subject: [PATCH] Fix static final order --- .../com/comphenix/tinyprotocol/TinyProtocol.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java b/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java index 01ae7a3..c72429c 100644 --- a/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java +++ b/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java @@ -21,12 +21,6 @@ import java.util.function.BiFunction; import java.util.logging.Level; public class TinyProtocol implements Listener { - public static final TinyProtocol instance = new TinyProtocol(Core.getInstance()); - private static int id = 0; - - public static void init() { - //enforce init - } private static final Class craftServer = Reflection.getClass("{obc}.CraftServer"); private static final Class dedicatedPlayerList = Reflection.getClass("{nms.server.dedicated}.DedicatedPlayerList"); @@ -39,6 +33,13 @@ public class TinyProtocol implements Listener { private static final Class networkManager = Reflection.getClass("{nms.network}.NetworkManager"); private static final FieldAccessor getConnections = Reflection.getField(serverConnection, List.class, 0, networkManager); + public static final TinyProtocol instance = new TinyProtocol(Core.getInstance()); + private static int id = 0; + + public static void init() { + //enforce init + } + private final Plugin plugin; private final String handlerName; private final List connections;