File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/gametest/java/net/wurstclient/gametest Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,20 @@ loom {
6868 accessWidenerPath = file(" src/main/resources/wurst.accesswidener" )
6969
7070 runs {
71+ clientGameTest {
72+ vmArgs. add(" -Dfabric.client.gametest.disableNetworkSynchronizer=true" )
73+ }
74+
7175 clientWithMods {
7276 inherit client
7377 }
74-
78+
7579 clientGameTestWithMods {
7680 inherit client
7781 source = sourceSets. gametest
7882 runDir = " build/run/clientGameTestWithMods"
7983 vmArgs. add(" -Dfabric.client.gametest" )
84+ vmArgs. add(" -Dfabric.client.gametest.disableNetworkSynchronizer=true" )
8085 vmArgs. add(" -Dwurst.test.withMods=true" )
8186 programArgs. add(" --username=Wurst-Bot" )
8287 }
Original file line number Diff line number Diff line change 2323import net .fabricmc .fabric .api .client .gametest .v1 .context .TestServerContext ;
2424import net .fabricmc .fabric .api .client .gametest .v1 .context .TestSingleplayerContext ;
2525import net .fabricmc .fabric .api .client .gametest .v1 .world .TestWorldBuilder ;
26+ import net .fabricmc .fabric .impl .client .gametest .TestSystemProperties ;
2627import net .minecraft .SharedConstants ;
2728import net .minecraft .client .gui .screens .worldselection .WorldCreationUiState ;
2829import net .minecraft .world .level .block .Blocks ;
@@ -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 );
You can’t perform that action at this time.
0 commit comments