From eebd9957c4163a71adf74fcf4ee7aa3edd024226 Mon Sep 17 00:00:00 2001 From: "Josiah (Gaming32) Glosson" Date: Sun, 29 Oct 2023 21:11:00 -0500 Subject: [PATCH] Fix 1.19.2 crash --- .../gaming32/worldhost/mixin/MixinConnectScreen_1.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/io/github/gaming32/worldhost/mixin/MixinConnectScreen_1.java b/src/main/java/io/github/gaming32/worldhost/mixin/MixinConnectScreen_1.java index ef8cc68..2cf665e 100644 --- a/src/main/java/io/github/gaming32/worldhost/mixin/MixinConnectScreen_1.java +++ b/src/main/java/io/github/gaming32/worldhost/mixin/MixinConnectScreen_1.java @@ -14,6 +14,10 @@ import net.minecraft.client.multiplayer.resolver.ServerAddress; //#endif +//#if MC > 1.18.2 && MC < 1.19.4 +//$$ import java.util.concurrent.CompletableFuture; +//#endif + @Mixin(targets = "net.minecraft.client.gui.screens.ConnectScreen$1") public class MixinConnectScreen_1 { @Unique @@ -29,6 +33,8 @@ private void initRefs( ServerAddress serverAddress, Minecraft minecraft, //#if MC > 1.19.2 ServerData serverData, + //#elseif MC > 1.18.2 + //$$ CompletableFuture completableFuture, //#endif //#else //$$ String host, int port,