From 1df5574b2ee771f64d158a9fc0282dee5a7901ab Mon Sep 17 00:00:00 2001 From: 4Benj_ Date: Mon, 2 May 2022 18:47:29 +0800 Subject: [PATCH] Removed debug message and fixed NullPtrException (#434) * Removed a debug message from Auth Handler changes Kill me * Also forgot to use the getter :/ --- .../java/emu/grasscutter/server/dispatch/DispatchServer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java index 40aee73bd..be6e5f9a1 100644 --- a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java +++ b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java @@ -309,7 +309,7 @@ public final class DispatchServer { } Grasscutter.getLogger().info(String.format("[Dispatch] Client %s is trying to log in", req.ip())); - res.send(authHandler.handleGameLogin(req, requestData)); + res.send(this.getAuthHandler().handleGameLogin(req, requestData)); }); // Login via token @@ -491,8 +491,6 @@ public final class DispatchServer { if(authHandler == null) { return new DefaultAuthenticationHandler(); } - Grasscutter.getLogger().info(authHandler.getClass().getName()); - return authHandler; }