Skip to content

Commit

Permalink
1.19.2
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
ishland committed Aug 6, 2022
1 parent 8480536 commit 8fbee57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -32,13 +32,13 @@ public class MixinConnectionScreen1 extends Thread {
@Unique
private boolean raknetLargeMTU = false;

@Inject(method = "<init>(Lnet/minecraft/client/gui/screen/ConnectScreen;Ljava/lang/String;Lnet/minecraft/client/network/ServerAddress;Lnet/minecraft/client/MinecraftClient;)V", at = @At("RETURN"))
private void onInit(ConnectScreen connectScreen, String string, ServerAddress serverAddress, MinecraftClient minecraftClient, CallbackInfo ci) {
final PrefixUtil.Info info = PrefixUtil.getInfo(serverAddress.getAddress());
@Inject(method = "<init>*", at = @At("RETURN"))
private void onInit(CallbackInfo ci) {
final PrefixUtil.Info info = PrefixUtil.getInfo(this.field_33737.getAddress());
if (info.useRakNet()) {
this.isRaknet = true;
this.raknetLargeMTU = info.largeMTU();
this.field_33737 = new ServerAddress(info.stripped(), serverAddress.getPort());
this.field_33737 = new ServerAddress(info.stripped(), this.field_33737.getPort());
}
}

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Expand Up @@ -6,9 +6,9 @@ org.gradle.parallel=true
# check these on https://fabricmc.net/develop
#
# Also don't forget to gen mappings in genMappings.sh
minecraft_version=1.19.1
yarn_mappings=1.19.1+build.1
loader_version=0.14.6
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.1
loader_version=0.14.8

# Mod Properties
mod_version = 0.1.0+alpha.5
Expand Down

0 comments on commit 8fbee57

Please sign in to comment.