Skip to content

Commit 5c70ef3

Browse files
committed
Merge remote-tracking branch 'upstream'
2 parents 4a479ab + 9624894 commit 5c70ef3

File tree

15 files changed

+129
-43
lines changed

15 files changed

+129
-43
lines changed

.github/workflows/auto_snapshot_update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: echo ${{ inputs.distinct_id }}
3535

3636
- name: Checkout repository
37-
uses: actions/checkout@v5
37+
uses: actions/checkout@v6
3838

3939
- name: Set up Python 3.12
4040
uses: actions/setup-python@v6

.github/workflows/check_translations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222

2323
- name: Checkout repository
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6
2525

2626
- name: Check translations
2727
uses: Wurst-Imperium/check-translations@v1

.github/workflows/dependency_graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323

2424
- name: Checkout repository
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2626

2727
- name: Set up Java 21
2828
uses: actions/setup-java@v5

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: echo ${{ inputs.distinct_id }}
3636

3737
- name: Checkout repository
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3939

4040
- name: Set up Java 21
4141
uses: actions/setup-java@v5

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: echo ${{ inputs.distinct_id }}
4343

4444
- name: Checkout repository
45-
uses: actions/checkout@v5
45+
uses: actions/checkout@v6
4646
with:
4747
# Include all tags in case the new tag already exists.
4848
fetch-tags: true

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ loom {
8888
accessWidenerPath = file("src/main/resources/wurst.accesswidener")
8989

9090
runs {
91+
clientWithMods {
92+
inherit client
93+
}
94+
9195
clientGameTestWithMods {
9296
inherit client
9397
source = sourceSets.gametest
@@ -109,6 +113,20 @@ dependencies {
109113
testMods "maven.modrinth:sodium:${project.sodium_version}"
110114
}
111115

116+
def cleanClientWithMods = tasks.register("cleanClientWithMods", Delete) {
117+
delete "run/mods"
118+
}
119+
120+
def prepareClientWithMods = tasks.register("prepareClientWithMods", Sync) {
121+
from configurations.testMods
122+
into "run/mods"
123+
}
124+
125+
tasks.named("runClientWithMods") {
126+
dependsOn prepareClientWithMods
127+
finalizedBy cleanClientWithMods
128+
}
129+
112130
def cleanClientGameTestWithMods = tasks.register("cleanClientGameTestWithMods", Delete) {
113131
delete layout.buildDirectory.dir("run/clientGameTestWithMods")
114132
}

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ org.gradle.configuration-cache=true
77
# check these at https://fabricmc.net/develop/ and
88
# https://modrinth.com/mod/fabric-api/versions
99
minecraft_version=1.21.10
10-
official_mappings=1.21.10
11-
loader_version=0.17.3
10+
yarn_mappings=1.21.10+build.2
11+
loader_version=0.18.1
1212
loom_version=1.13-SNAPSHOT
1313

1414
# Fabric API
1515
fabric_version=0.138.3+1.21.10
1616

1717
# Mod Properties
18-
mod_version=v7.51.1-CevAPI-MC1.21.10
18+
mod_version=v7.51.2-CevAPI-MC1.21.10
1919
maven_group=net.wurstclient
2020
archives_base_name=Wurst-Client
2121
mod_loader=Fabric
@@ -26,5 +26,5 @@ mcx_repo_id=Wurst-Imperium/Wurst-MCX2
2626

2727
# Dependencies
2828
# check at https://modrinth.com/mod/sodium/versions?l=fabric&g=1.21.10
29-
sodium_version=mc1.21.10-0.7.2-fabric
29+
sodium_version=mc1.21.10-0.7.3-fabric
3030
do_mod_compat_test=true

src/gametest/java/net/wurstclient/gametest/WurstTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ private void testInWorld(ClientGameTestContext context,
8989
world.waitForChunksRender();
9090

9191
assertScreenshotEquals(context, "in_game",
92-
IS_MOD_COMPAT_TEST ? "https://i.imgur.com/VxbGFrb.png"
93-
: "https://i.imgur.com/EfzN9Cd.png");
92+
"https://i.imgur.com/EfzN9Cd.png");
9493

9594
LOGGER.info("Recording debug menu");
9695
input.pressKey(GLFW.GLFW_KEY_F3);

src/gametest/java/net/wurstclient/gametest/tests/FreecamHackTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ public static void testFreecamHack(ClientGameTestContext context,
4141
input.holdKeyFor(GLFW.GLFW_KEY_S, 2);
4242
input.holdKeyFor(GLFW.GLFW_KEY_SPACE, 1);
4343
assertScreenshotEquals(context, "freecam_moved",
44-
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/oZUpI8c.png"
45-
: "https://i.imgur.com/pZDlYfH.png");
44+
"https://i.imgur.com/pZDlYfH.png");
4645
clearChat(context);
4746

4847
// Enable tracer
4948
runWurstCommand(context, "setcheckbox Freecam tracer on");
5049
context.waitTick();
5150
assertScreenshotEquals(context, "freecam_tracer",
52-
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/teKaxAK.png"
53-
: "https://i.imgur.com/jYqDFzE.png");
51+
"https://i.imgur.com/jYqDFzE.png");
5452
clearChat(context);
5553

5654
// Clean up

src/gametest/java/net/wurstclient/gametest/tests/XRayHackTest.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public static void testXRayHack(ClientGameTestContext context,
3838
input.pressKey(GLFW.GLFW_KEY_X);
3939
waitForChunkReloading(context, world);
4040
assertScreenshotEquals(context, "xray_default",
41-
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/02KZHLm.png"
42-
: "https://i.imgur.com/Dftamqv.png");
41+
"https://i.imgur.com/Dftamqv.png");
4342

4443
// Exposed only
4544
runWurstCommand(context, "setcheckbox X-Ray only_show_exposed on");
@@ -48,8 +47,7 @@ public static void testXRayHack(ClientGameTestContext context,
4847
input.pressKey(GLFW.GLFW_KEY_X);
4948
waitForChunkReloading(context, world);
5049
assertScreenshotEquals(context, "xray_exposed_only",
51-
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/xplrJwM.png"
52-
: "https://i.imgur.com/QlEpQTu.png");
50+
"https://i.imgur.com/QlEpQTu.png");
5351

5452
// Opacity mode
5553
runWurstCommand(context, "setcheckbox X-Ray only_show_exposed off");
@@ -58,8 +56,7 @@ public static void testXRayHack(ClientGameTestContext context,
5856
input.pressKey(GLFW.GLFW_KEY_X);
5957
waitForChunkReloading(context, world);
6058
assertScreenshotEquals(context, "xray_opacity",
61-
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/MFc821z.png"
62-
: "https://i.imgur.com/0nLulJn.png");
59+
"https://i.imgur.com/0nLulJn.png");
6360

6461
// Exposed only + opacity
6562
runWurstCommand(context, "setcheckbox X-Ray only_show_exposed on");
@@ -68,8 +65,7 @@ public static void testXRayHack(ClientGameTestContext context,
6865
input.pressKey(GLFW.GLFW_KEY_X);
6966
waitForChunkReloading(context, world);
7067
assertScreenshotEquals(context, "xray_exposed_only_opacity",
71-
WurstTest.IS_MOD_COMPAT_TEST ? "https://i.imgur.com/GRHgW6P.png"
72-
: "https://i.imgur.com/noPWDUl.png");
68+
"https://i.imgur.com/noPWDUl.png");
7369

7470
// Clean up
7571
runCommand(server, "fill ~-5 ~-2 ~5 ~5 ~5 ~7 air");

0 commit comments

Comments
 (0)