Skip to content

Commit cced3be

Browse files
committed
Merge remote-tracking branch 'upstream/1.21.10' into 1.21.10
2 parents 8ebfb42 + 3f9a4ef commit cced3be

File tree

7 files changed

+28
-16
lines changed

7 files changed

+28
-16
lines changed

.github/workflows/multi_publish.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ on:
66
inputs:
77
wurst_version:
88
description: "Wurst version (without v or -MC)"
9-
required: true
109
type: string
10+
required: true
1111
branches:
1212
description: "Space-separated list of branches to publish from"
13-
required: true
1413
type: string
14+
required: true
1515
announce_update:
1616
description: "Announce as an update on WurstForum"
17-
required: true
1817
type: boolean
1918
default: false
2019
announce_ports:
2120
description: "Announce as ports on WurstForum"
22-
required: true
2321
type: boolean
2422
default: false
2523
dry_run:
2624
description: "Dry-run mode (don't actually publish anything)"
27-
required: false
2825
type: boolean
2926
default: false
3027

@@ -47,6 +44,15 @@ jobs:
4744
JSON_ARRAY="[${quoted_branches%,}]"
4845
echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT"
4946
echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY"
47+
- name: Verify mod_version is as expected
48+
run: |
49+
expected_prefix="v${{ inputs.wurst_version }}-MC"
50+
for branch in ${{ inputs.branches }}; do
51+
url="https://raw.githubusercontent.com/${{ github.repository }}/${branch}/gradle.properties"
52+
actual=$(curl -sf "$url" | grep "^mod_version=" | cut -d'=' -f2)
53+
echo "$branch: $actual"
54+
[[ "$actual" == "$expected_prefix"* ]] || { echo "::error::Expected $expected_prefix*, got $actual"; exit 1; }
55+
done
5056
5157
publish_each:
5258
runs-on: ubuntu-latest
@@ -62,14 +68,13 @@ jobs:
6268
fail-fast: true
6369
matrix:
6470
branch: ${{ fromJson(needs.prepare.outputs.branches) }}
65-
# TODO: Maybe also verify that the wurst_version in each branch is as expected before publishing?
6671
steps:
6772
- name: Trigger publish workflow
6873
uses: Wurst-Imperium/dispatch-and-wait@v1
6974
with:
7075
token: ${{ github.token }}
71-
owner: Wurst-Imperium
72-
repo: Wurst7
76+
owner: ${{ github.repository_owner }}
77+
repo: ${{ github.event.repository.name }}
7378
ref: ${{ matrix.branch }}
7479
workflow: publish.yml
7580
workflow_inputs: |

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ on:
66
inputs:
77
close_milestone:
88
description: "Close milestone"
9-
required: true
109
type: boolean
1110
default: true
1211
upload_backups:
1312
description: "Upload to backups server"
14-
required: true
1513
type: boolean
1614
default: true
1715
publish_github:
1816
description: "Publish to GitHub"
19-
required: true
2017
type: boolean
2118
default: true
2219
update_website:
2320
description: "Update WurstClient.net post (only works if there already is one)"
24-
required: true
2521
type: boolean
2622
default: false
2723
distinct_id:
24+
type: string
2825
required: false
2926

3027
permissions:
@@ -69,6 +66,7 @@ jobs:
6966
run: ./gradlew build --stacktrace --warning-mode=fail
7067

7168
- name: Create and push tag
69+
if: ${{ github.ref_type != 'tag' }}
7270
run: |
7371
MOD_VERSION=$(grep "^mod_version=" gradle.properties | cut -d'=' -f2 | tr -d ' \r')
7472
git config --global user.name "Wurst-Bot"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Wurst Client v7.51.2 (MC1.21.10) - Modified by CevAPI
1+
# Wurst Client v7.51.3 (MC1.21.10) - Modified by CevAPI
22

33
![CevAPI Logo](https://i.imgur.com/kBIn9Ab.png)
44

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,20 @@ loom {
9090
accessWidenerPath = file("src/main/resources/wurst.accesswidener")
9191

9292
runs {
93+
clientGameTest {
94+
vmArgs.add("-Dfabric.client.gametest.disableNetworkSynchronizer=true")
95+
}
96+
9397
clientWithMods {
9498
inherit client
9599
}
96-
100+
97101
clientGameTestWithMods {
98102
inherit client
99103
source = sourceSets.gametest
100104
runDir = "build/run/clientGameTestWithMods"
101105
vmArgs.add("-Dfabric.client.gametest")
106+
vmArgs.add("-Dfabric.client.gametest.disableNetworkSynchronizer=true")
102107
vmArgs.add("-Dwurst.test.withMods=true")
103108
programArgs.add("--username=Wurst-Bot")
104109
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ loom_version=1.14-SNAPSHOT
1515
fabric_version=0.138.3+1.21.10
1616

1717
# Mod Properties
18-
mod_version=v7.51.2-CevAPI-MC1.21.10
18+
mod_version=v7.51.3-CevAPI-MC1.21.10
1919
maven_group=net.wurstclient
2020
archives_base_name=Wurst-Client
2121
mod_loader=Fabric

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import net.fabricmc.fabric.api.client.gametest.v1.context.TestServerContext;
2424
import net.fabricmc.fabric.api.client.gametest.v1.context.TestSingleplayerContext;
2525
import net.fabricmc.fabric.api.client.gametest.v1.world.TestWorldBuilder;
26+
import net.fabricmc.fabric.impl.client.gametest.TestSystemProperties;
2627
import net.minecraft.SharedConstants;
2728
import net.minecraft.client.gui.screens.worldselection.WorldCreationUiState;
2829
import net.minecraft.world.level.GameRules;
@@ -42,6 +43,9 @@ public class WurstTest implements FabricClientGameTest
4243
@Override
4344
public void runTest(ClientGameTestContext context)
4445
{
46+
if(!TestSystemProperties.DISABLE_NETWORK_SYNCHRONIZER)
47+
throw new RuntimeException("Network synchronizer is not disabled");
48+
4549
LOGGER.info("Starting Wurst Client GameTest");
4650
hideSplashTexts(context);
4751
waitForTitleScreenFade(context);

src/main/java/net/wurstclient/WurstClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public enum WurstClient
5252
public static Minecraft MC;
5353
public static IMinecraftClient IMC;
5454

55-
public static final String VERSION = "7.51.2";
55+
public static final String VERSION = "7.51.3";
5656
public static final String MC_VERSION = "1.21.10";
5757

5858
private PlausibleAnalytics plausible;

0 commit comments

Comments
 (0)