mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-12-19 15:57:37 +01:00
Better quality logo, change debug message
This commit is contained in:
parent
7e4a526e3d
commit
c15f247b61
@ -43,7 +43,7 @@ import java.util.List;
|
|||||||
public class MixinDebugHud {
|
public class MixinDebugHud {
|
||||||
@Inject(at = @At("RETURN"), method = "getLeftText")
|
@Inject(at = @At("RETURN"), method = "getLeftText")
|
||||||
protected void getLeftText(CallbackInfoReturnable<List<String>> info) {
|
protected void getLeftText(CallbackInfoReturnable<List<String>> info) {
|
||||||
info.getReturnValue().add("[ViaFabric] " + Via.getManager().getConnections().size() + " injected ("
|
info.getReturnValue().add("[ViaFabric] Injected: " + Via.getManager().getConnections().size() + " ("
|
||||||
+ Via.getManager().getConnectedClients().size() + " frontend)");
|
+ Via.getManager().getConnectedClients().size() + " frontend)");
|
||||||
ChannelHandler viaDecoder = ((MixinClientConnectionAccessor) MinecraftClient.getInstance().getNetworkHandler()
|
ChannelHandler viaDecoder = ((MixinClientConnectionAccessor) MinecraftClient.getInstance().getNetworkHandler()
|
||||||
.getConnection()).getChannel().pipeline().get(CommonTransformer.HANDLER_DECODER_NAME);
|
.getConnection()).getChannel().pipeline().get(CommonTransformer.HANDLER_DECODER_NAME);
|
||||||
@ -55,7 +55,8 @@ public class MixinDebugHud {
|
|||||||
if (!protocol.getUser().isActive()) {
|
if (!protocol.getUser().isActive()) {
|
||||||
inactive = " (inactive)";
|
inactive = " (inactive)";
|
||||||
}
|
}
|
||||||
info.getReturnValue().add("[ViaFabric] Client injected" + inactive + ": server is " + serverVer);
|
info.getReturnValue().add("[ViaFabric] Client injected: "
|
||||||
|
+ serverVer.getName() + " (" + serverVer.getId() + ") server" + inactive);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in New Issue
Block a user