Don't crash the game when you open the BetaCraft screen without connection

This commit is contained in:
FlorianMichael 2023-07-18 05:47:38 +02:00
parent a72b0f7c74
commit ccba9f362d
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -69,6 +69,7 @@ public class BetaCraftScreen extends VFPScreen {
public SlotList(MinecraftClient minecraftClient, int width, int height, int top, int bottom, int entryHeight) { public SlotList(MinecraftClient minecraftClient, int width, int height, int top, int bottom, int entryHeight) {
super(minecraftClient, width, height, top, bottom, entryHeight); super(minecraftClient, width, height, top, bottom, entryHeight);
if (SERVER_LIST == null) return;
for (BCVersion value : BCVersion.values()) { for (BCVersion value : BCVersion.values()) {
final List<BCServerInfo> servers = SERVER_LIST.serversOfVersion(value); final List<BCServerInfo> servers = SERVER_LIST.serversOfVersion(value);