Hardcode EventType.GAME for ServerLogEvent

This commit is contained in:
KingRainbow44
2022-06-24 01:22:11 -04:00
parent 52da2c235d
commit 95df9a3162
2 changed files with 12 additions and 10 deletions

View File

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