diff --git a/src/main/java/com/github/creeper123123321/viafabric/mixin/debug/client/MixinDebugHud.java b/src/main/java/com/github/creeper123123321/viafabric/mixin/debug/client/MixinDebugHud.java index 203210c..41e1881 100644 --- a/src/main/java/com/github/creeper123123321/viafabric/mixin/debug/client/MixinDebugHud.java +++ b/src/main/java/com/github/creeper123123321/viafabric/mixin/debug/client/MixinDebugHud.java @@ -44,8 +44,8 @@ import java.util.List; public class MixinDebugHud { @Inject(at = @At("RETURN"), method = "getLeftText") protected void getLeftText(CallbackInfoReturnable> info) { - info.getReturnValue().add("[ViaFabric] Injected: " + Via.getManager().getConnections().size() + " (" - + Via.getManager().getConnectedClients().size() + " frontend)"); + String line = "[ViaFabric] I: " + Via.getManager().getConnections().size() + " (F: " + + Via.getManager().getConnectedClients().size() + ")"; @SuppressWarnings("ConstantConditions") ChannelHandler viaDecoder = ((MixinClientConnectionAccessor) MinecraftClient.getInstance().getNetworkHandler() .getConnection()).getChannel().pipeline().get(CommonTransformer.HANDLER_DECODER_NAME); if (viaDecoder instanceof FabricDecodeHandler) { @@ -53,14 +53,11 @@ public class MixinDebugHud { if (protocol != null) { ProtocolVersion serverVer = ProtocolVersion.getProtocol(protocol.getServerProtocolVersion()); ProtocolVersion clientVer = ProtocolVersion.getProtocol(protocol.getProtocolVersion()); - String inactive = ""; - if (!protocol.getUser().isActive()) { - inactive = " (inactive)"; - } - info.getReturnValue().add("[ViaFabric] Client injected: C: " + - clientVer.getName() + " (" + clientVer.getId() + ") S: " + - serverVer.getName() + " (" + serverVer.getId() + ")" + inactive); + line += " / C: " + clientVer.getName() + " (" + clientVer.getId() + ") S: " + + serverVer.getName() + " (" + serverVer.getId() + ") A: " + protocol.getUser().isActive(); } } + + info.getReturnValue().add(line); } }