Remove 'handlerFound' from ConnectListener

This commit is contained in:
Smart123s
2021-06-13 16:48:01 +02:00
parent c1cf80fe28
commit c0d21fdca2

View File

@ -73,12 +73,10 @@ public class ConnectListener implements Listener {
static {
MethodHandle setHandle = null;
boolean handlerFound = false;
try {
Lookup lookup = MethodHandles.lookup();
Class.forName("net.md_5.bungee.connection.InitialHandler");
handlerFound = true;
Field uuidField = InitialHandler.class.getDeclaredField(UUID_FIELD_NAME);
uuidField.setAccessible(true);