mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-26 12:45:44 +01:00
Removed debug print
This commit is contained in:
parent
758dc93bc7
commit
c202c4c3ca
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user