File tree Expand file tree Collapse file tree
src/gametest/java/net/wurstclient/gametest/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ gh_repo_id=cev-api/Wurst7-CevAPI
2525
2626# Mod versions for automated compatibility tests:
2727# Check at https://modrinth.com/mod/sodium/versions?l=fabric&g=26.2
28- sodium_version =mc26.2-0.9.1-beta.4- fabric
28+ sodium_version =mc26.2-0.9.1-fabric
2929
3030# For manual testing (uncomment as needed):
3131# Check at https://modrinth.com/mod/better-block-entities/versions?g=26.2
Original file line number Diff line number Diff line change @@ -132,8 +132,16 @@ protected void runImpl()
132132 context .waitTick ();
133133 }
134134 context .waitTick ();
135+ // Open and close chat to reset cursor position
136+ input .pressKey (GLFW .GLFW_KEY_T );
137+ input .pressKey (GLFW .GLFW_KEY_ESCAPE );
138+ // Freeze the player's idle arm bob for a deterministic screenshot.
139+ int playerTickCount =
140+ context .computeOnClient (mc -> mc .player .tickCount );
141+ context .runOnClient (mc -> mc .player .tickCount = 0 );
135142 assertScreenshotEquals ("freecam_player_moved" ,
136- "https://i.imgur.com/mf6NgQl.png" );
143+ "https://i.imgur.com/7LBoiaq.png" );
144+ context .runOnClient (mc -> mc .player .tickCount = playerTickCount );
137145 runWurstCommand ("setmode Freecam apply_input_to camera" );
138146 input .pressKey (GLFW .GLFW_KEY_U );
139147 context .waitTick ();
You can’t perform that action at this time.
0 commit comments