-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
36 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
common/src/main/java/de/rafael/modflared/mixin/ConnectScreenThreadRunMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package de.rafael.modflared.mixin; | ||
|
||
import de.rafael.modflared.methods.ConnectScreenMethods; | ||
import net.minecraft.network.ClientConnection; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
import java.net.InetAddress; | ||
|
||
@Mixin(targets = "net.minecraft.client.gui.screen.ConnectScreen$1") | ||
public abstract class ConnectScreenThreadRunMixin implements Runnable { | ||
|
||
@Redirect(method = "run", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/ClientConnection;connect(Ljava/net/InetAddress;IZ)Lnet/minecraft/network/ClientConnection;")) | ||
private @NotNull ClientConnection connect(InetAddress inetAddress, int port, boolean shouldUseNativeTransport) { | ||
return ConnectScreenMethods.connect(inetAddress, port, shouldUseNativeTransport); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
fabric/src/main/java/de/rafael/modflared/fabric/mixin/ConnectScreenThreadRunMixin.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
"client": [ | ||
], | ||
"mixins": [ | ||
"ConnectScreenThreadRunMixin" | ||
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
"client": [ | ||
], | ||
"mixins": [ | ||
"ConnectScreenThreadRunMixin" | ||
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
|
22 changes: 0 additions & 22 deletions
22
neoforge/src/main/java/de/rafael/modflared/neoforge/mixin/ConnectScreenThreadRunMixin.java
This file was deleted.
Oops, something went wrong.