From 8d783aa172830f212baa197b6b0c1c3d5f1237d1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 6 Apr 2021 08:18:58 +1000 Subject: [PATCH] #3058: Remove world limit --- .../src/main/java/net/md_5/bungee/protocol/packet/Login.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Login.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Login.java index c518eed7..a240ccbb 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Login.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Login.java @@ -1,6 +1,5 @@ package net.md_5.bungee.protocol.packet; -import com.google.common.base.Preconditions; import io.netty.buffer.ByteBuf; import java.util.HashSet; import java.util.Set; @@ -53,8 +52,6 @@ public class Login extends DefinedPacket worldNames = new HashSet<>(); int worldCount = readVarInt( buf ); - Preconditions.checkArgument( worldCount < 128, "Too many worlds %s", worldCount ); - for ( int i = 0; i < worldCount; i++ ) { worldNames.add( readString( buf ) );