Commit 34f7c6e7 authored by KingRainbow44's avatar KingRainbow44
Browse files

Formatting changes

parent 95df9a31
......@@ -7,7 +7,7 @@ import emu.grasscutter.server.event.types.ServerEvent;
* @deprecated Will be removed in 1.2.3-dev or 1.3.0.
*/
@Deprecated(since = "1.2.2-dev", forRemoval = true)
public class CommandResponseEvent extends ServerEvent {
public final class CommandResponseEvent extends ServerEvent {
private String message;
private Player player;
......
......@@ -34,7 +34,7 @@ public class GameServerPacketHandler {
return;
}
PacketHandler packetHandler = (PacketHandler) handlerClass.newInstance();
PacketHandler packetHandler = handlerClass.getDeclaredConstructor().newInstance();
this.handlers.put(opcode.value(), packetHandler);
} catch (Exception e) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment