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,