mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 08:25:21 +01:00
Hardcode EventType.GAME for ServerLogEvent
This commit is contained in:
@@ -17,12 +17,12 @@ public class ServerLogEventAppender<E> extends AppenderBase<E> {
|
||||
@Override
|
||||
protected void append(E event) {
|
||||
byte[] byteArray = this.encoder.encode(event);
|
||||
ServerLogEvent sle = new ServerLogEvent(ServerEvent.Type.GAME, (ILoggingEvent) event, new String(byteArray, StandardCharsets.UTF_8));
|
||||
ServerLogEvent sle = new ServerLogEvent((ILoggingEvent) event, new String(byteArray, StandardCharsets.UTF_8));
|
||||
sle.call();
|
||||
}
|
||||
|
||||
public Encoder<E> getEncoder() {
|
||||
return encoder;
|
||||
return this.encoder;
|
||||
}
|
||||
|
||||
public void setEncoder(Encoder<E> encoder) {
|
||||
|
||||
Reference in New Issue
Block a user