Removed debug print

This commit is contained in:
FlorianMichael 2023-12-08 15:40:48 +01:00
parent 758dc93bc7
commit c202c4c3ca
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -28,11 +28,6 @@ public class ViaForgeVersionProvider extends BaseVersionProvider {
@Override @Override
public int getClosestServerProtocol(UserConnection connection) throws Exception { public int getClosestServerProtocol(UserConnection connection) throws Exception {
if (connection.isClientSide() && !ViaForgeCommon.getManager().getPlatform().isSingleplayer().get()) { if (connection.isClientSide() && !ViaForgeCommon.getManager().getPlatform().isSingleplayer().get()) {
try {
System.out.println(connection.getChannel().attr(ViaForgeCommon.VF_NETWORK_MANAGER).get());
} catch (Exception e) {
e.printStackTrace();
}
return connection.getChannel().attr(ViaForgeCommon.VF_NETWORK_MANAGER).get().viaForge$getTrackedVersion().getVersion(); return connection.getChannel().attr(ViaForgeCommon.VF_NETWORK_MANAGER).get().viaForge$getTrackedVersion().getVersion();
} }
return super.getClosestServerProtocol(connection); return super.getClosestServerProtocol(connection);