mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 16:32:53 +08:00
Formatting changes
This commit is contained in:
parent
95df9a3162
commit
34f7c6e780
@ -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 Will be removed in 1.2.3-dev or 1.3.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "1.2.2-dev", forRemoval = true)
|
@Deprecated(since = "1.2.2-dev", forRemoval = true)
|
||||||
public class CommandResponseEvent extends ServerEvent {
|
public final class CommandResponseEvent extends ServerEvent {
|
||||||
private String message;
|
private String message;
|
||||||
private Player player;
|
private Player player;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public class GameServerPacketHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
PacketHandler packetHandler = (PacketHandler) handlerClass.newInstance();
|
PacketHandler packetHandler = handlerClass.getDeclaredConstructor().newInstance();
|
||||||
|
|
||||||
this.handlers.put(opcode.value(), packetHandler);
|
this.handlers.put(opcode.value(), packetHandler);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user