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 ;
28- import net .minecraft .world .level .GameRules ;
2929import net .minecraft .world .level .block .Blocks ;
30+ import net .minecraft .world .level .gamerules .GameRules ;
3031import net .minecraft .world .level .levelgen .FlatLevelSource ;
3132import net .minecraft .world .level .levelgen .flat .FlatLayerInfo ;
3233import net .minecraft .world .level .levelgen .flat .FlatLevelGeneratorSettings ;
@@ -42,13 +43,16 @@ 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 );
4852
4953 LOGGER .info ("Reached title screen" );
5054 assertScreenshotEquals (context , "title_screen" ,
51- "https://i.imgur.com/4fSJRpd .png" );
55+ "https://i.imgur.com/xSAHDXr .png" );
5256
5357 AltManagerTest .testAltManagerButton (context );
5458
@@ -58,8 +62,8 @@ public void runTest(ClientGameTestContext context)
5862 String mcVersion = SharedConstants .getCurrentVersion ().name ();
5963 creator .setName ("E2E Test " + mcVersion );
6064 creator .setGameMode (WorldCreationUiState .SelectedGameMode .CREATIVE );
61- creator .getGameRules ().getRule (GameRules .RULE_SENDCOMMANDFEEDBACK )
62- . set ( false , null );
65+ creator .getGameRules ().set (GameRules .SEND_COMMAND_FEEDBACK , false ,
66+ null );
6367 applyFlatPresetWithSmoothStone (creator );
6468 });
6569
@@ -79,6 +83,9 @@ private void testInWorld(ClientGameTestContext context,
7983 TestClientWorldContext world = spContext .getClientWorld ();
8084 TestServerContext server = spContext .getServer ();
8185
86+ // Disable chunk fade
87+ context .runOnClient (mc -> mc .options .chunkSectionFadeInTime ().set (0.0 ));
88+
8289 runCommand (server , "time set noon" );
8390 runCommand (server , "tp 0 -57 0" );
8491 runCommand (server , "fill ~ ~-3 ~ ~ ~-1 ~ smooth_stone" );
0 commit comments