Most things now use Gson for JSON

This commit is contained in:
Camotoy 2024-06-26 01:04:19 -04:00
parent 8d24891c97
commit 2d33cfd149
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
20 changed files with 432 additions and 296 deletions

View file

@ -26,6 +26,7 @@ package org.geysermc.geyser.platform.viaproxy;
import net.raphimc.viaproxy.cli.ConsoleFormatter;
import org.apache.logging.log4j.Logger;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.geysermc.geyser.GeyserLogger;
import org.geysermc.geyser.command.GeyserCommandSource;
@ -75,6 +76,13 @@ public class GeyserViaProxyLogger implements GeyserLogger, GeyserCommandSource {
}
}
@Override
public void debug(@Nullable Object object) {
if (this.debug) {
this.logger.debug(ConsoleFormatter.convert(String.valueOf(object)));
}
}
@Override
public void setDebug(boolean debug) {
this.debug = debug;