Skip to content

Commit

Permalink
force disable 2b2t zenith to server via as they added 1.20.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed May 20, 2024
1 parent 1dd279c commit c68b06c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/zenith/via/ZenithViaInitializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import com.viaversion.viaversion.connection.UserConnectionImpl;
import com.viaversion.viaversion.protocol.ProtocolPipelineImpl;
import com.zenith.Proxy;
import com.zenith.via.handler.ZViaProtocolStateHandler;
import io.netty.channel.Channel;
import net.raphimc.vialoader.ViaLoader;
Expand Down Expand Up @@ -39,11 +40,9 @@ public void clientViaChannelInitializer(Channel channel, Session client) {
if (CONFIG.client.viaversion.autoProtocolVersion) updateClientViaProtocolVersion();
if (CONFIG.client.viaversion.protocolVersion == MinecraftCodec.CODEC.getProtocolVersion()) {
CLIENT_LOG.warn("ViaVersion enabled but the protocol is the same as ours, connecting without ViaVersion");
} else if (Proxy.getInstance().isOn2b2t()) {
CLIENT_LOG.warn("ViaVersion enabled but server set to 2b2t.org, connecting without ViaVersion");
}
// todo: add back when 2b2t adds 1.20.6 client support
// else if (Proxy.getInstance().isOn2b2t()) {
// CLIENT_LOG.warn("ViaVersion enabled but server set to 2b2t.org, connecting without ViaVersion");
// }
else {
init();
UserConnectionImpl userConnection = new UserConnectionImpl(channel, true);
Expand Down

0 comments on commit c68b06c

Please sign in to comment.