Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Updated to 1.20.6, release 4.3.2
Browse files Browse the repository at this point in the history
Updated to 1.20.6, release 4.3.2
  • Loading branch information
DAMcraft authored May 11, 2024
2 parents f44d2ec + 76351b0 commit a13dc7b
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 17
java-version: 21
distribution: adopt
- uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 17
java-version: 21
distribution: adopt
- name: Build
run: ./gradlew build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="https://github.com/DAMcraft/MeteorServerSeeker/releases/download/4.3.1/server-seeker-4.3.1.jar">
<a href="https://github.com/DAMcraft/MeteorServerSeeker/releases/download/4.3.2/server-seeker-4.3.2.jar">
<img src="https://custom-icon-badges.demolab.com/badge/-Download-2b2b2b?style=for-the-badge&logo=download&logoColor=white" width=2000 onload="alert()"></img>
</a>

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id "fabric-loom" version "1.5.7"
id "fabric-loom" version "1.6-SNAPSHOT"
}

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_21

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
org.gradle.jvmargs=-Xmx2G

# Fabric Properties (https://fabricmc.net/develop)
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.6
fabric_version=0.95.4+1.20.4
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
loader_version=0.15.11
fabric_version=0.98.0+1.20.6

# Mod Properties
mod_version=4.3.1
mod_version=4.3.2
maven_group=de.damcraft
archives_base_name=server-seeker

# Dependencies

# Meteor (https://maven.meteordev.org)
meteor_version=0.5.6-SNAPSHOT
meteor_version=0.5.7-SNAPSHOT
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package de.damcraft.serverseeker.country;

import de.damcraft.serverseeker.ServerSeeker;
import meteordevelopment.meteorclient.utils.network.MeteorExecutor;

public class Countries {
public static final Country UN = new DefaultCountry("Any", "UN");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ private void handleThreadFinish() {
HostAndPort hap = HostAndPort.fromString(serverIP);

joinServerButton.action = ()
-> ConnectScreen.connect(new TitleScreen(), MinecraftClient.getInstance(), new ServerAddress(hap.getHost(), hap.getPort()), new ServerInfo("a", hap.toString(), ServerInfo.ServerType.OTHER), false);
-> ConnectScreen.connect(new TitleScreen(), MinecraftClient.getInstance(), new ServerAddress(hap.getHost(), hap.getPort()), new ServerInfo("a", hap.toString(), ServerInfo.ServerType.OTHER), false, null);

WButton serverInfoButton = theme.button("Server Info");
serverInfoButton.action = () -> this.client.setScreen(new ServerInfoScreen(serverIP));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void initWidgets() {
HostAndPort hap = HostAndPort.fromString(serverIP);
WButton joinServerButton = theme.button("Join Server");
joinServerButton.action = () -> {
ConnectScreen.connect(new TitleScreen(), MinecraftClient.getInstance(), new ServerAddress(hap.getHost(), hap.getPort()), new ServerInfo("a", hap.toString(), ServerInfo.ServerType.OTHER), false);
ConnectScreen.connect(new TitleScreen(), MinecraftClient.getInstance(), new ServerAddress(hap.getHost(), hap.getPort()), new ServerInfo("a", hap.toString(), ServerInfo.ServerType.OTHER), false, null);
};

WButton serverInfoButton = theme.button("Server Info");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ public void initWidgets() {
}
WButton joinServerButton = add(theme.button("Join this Server")).expandX().widget();
joinServerButton.action = ()
-> ConnectScreen.connect(new TitleScreen(), MinecraftClient.getInstance(), new ServerAddress(hap.getHost(), hap.getPort()), new ServerInfo("a", hap.toString(), ServerInfo.ServerType.OTHER), false);
-> ConnectScreen.connect(new TitleScreen(), MinecraftClient.getInstance(), new ServerAddress(hap.getHost(), hap.getPort()), new ServerInfo("a", hap.toString(), ServerInfo.ServerType.OTHER), false, null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import de.damcraft.serverseeker.modules.BungeeSpoofModule;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.utils.network.Http;
import net.minecraft.network.NetworkState;
import net.minecraft.network.packet.c2s.handshake.ConnectionIntent;
import net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket;
import org.spongepowered.asm.mixin.Final;
Expand All @@ -21,19 +20,20 @@

@Mixin(HandshakeC2SPacket.class)
public abstract class HandshakeC2SMixin {
@Shadow
public abstract NetworkState getNewNetworkState();

@Mutable
@Shadow
@Final
private String address;

@Shadow
public abstract ConnectionIntent intendedState();

@Inject(method = "<init>(ILjava/lang/String;ILnet/minecraft/network/packet/c2s/handshake/ConnectionIntent;)V", at = @At("RETURN"))
private void onHandshakeC2SPacket(int i, String string, int j, ConnectionIntent connectionIntent, CallbackInfo ci) {
BungeeSpoofModule bungeeSpoofModule = Modules.get().get(BungeeSpoofModule.class);
if (!bungeeSpoofModule.isActive()) return;
if (this.getNewNetworkState() != NetworkState.LOGIN) return;
if (this.intendedState() != ConnectionIntent.LOGIN) return;
ServerSeeker.LOG.info("Spoofing bungeecord handshake packet");
String spoofedUUID = mc.getSession().getUuidOrNull().toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
public class MCVersionUtil {
private static final HashMap<String, Integer> versions = new HashMap<>() {
{
put("1.20.6", 766);
put("1.20.5", 766);
put("1.20.4", 765);
put("1.20.3", 765);
put("1.20.2", 764);
Expand Down

0 comments on commit a13dc7b

Please sign in to comment.