Formatting changes

This commit is contained in:
KingRainbow44 2022-06-24 01:22:18 -04:00
parent 95df9a3162
commit 34f7c6e780
2 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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) {