Skip to content

Commit

Permalink
Fix 1.19.2 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Oct 30, 2023
1 parent 5cbe729 commit eebd995
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit eebd995

Please sign in to comment.