Skip to content

Commit

Permalink
Adjust piston & X-ray test timings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 29, 2024
1 parent 1acb31c commit 17f31ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/main/java/net/wurstclient/test/PistonTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

import static net.wurstclient.test.WurstClientTestHelper.*;

import java.time.Duration;

import net.minecraft.block.Blocks;

public enum PistonTest
Expand All @@ -27,13 +25,13 @@ public static void testPistonDoesntCrash()
waitForBlock(0, 1, 2, Blocks.PISTON);
runChatCommand("setblock ~ ~ ~2 minecraft:redstone_block");
waitForBlock(0, 0, 2, Blocks.REDSTONE_BLOCK);
takeScreenshot("piston_extending", Duration.ZERO);
takeScreenshot("piston_extending");
waitForWorldTicks(3);

// Destroy the redstone block
runChatCommand("setblock ~ ~ ~2 minecraft:air");
waitForBlock(0, 0, 2, Blocks.AIR);
takeScreenshot("piston_retracting", Duration.ZERO);
takeScreenshot("piston_retracting");
waitForWorldTicks(3);

// Clean up
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/net/wurstclient/test/XRayHackTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ public static void testXRayHack()
runWurstCommand("setcheckbox X-Ray only_show_exposed off");
runWurstCommand("setslider X-Ray opacity 0");
runWurstCommand("t X-Ray on");
takeScreenshot("xray_default", Duration.ofMillis(250));
takeScreenshot("xray_default", Duration.ofMillis(300));
runWurstCommand("t X-Ray off");
clearChat();

// Exposed only
runWurstCommand("setcheckbox X-Ray only_show_exposed on");
runWurstCommand("setslider X-Ray opacity 0");
runWurstCommand("t X-Ray on");
takeScreenshot("xray_exposed_only", Duration.ofMillis(250));
takeScreenshot("xray_exposed_only", Duration.ofMillis(300));
runWurstCommand("t X-Ray off");
clearChat();

// Opacity mode
runWurstCommand("setcheckbox X-Ray only_show_exposed off");
runWurstCommand("setslider X-Ray opacity 0.5");
runWurstCommand("t X-Ray on");
takeScreenshot("xray_opacity", Duration.ofMillis(250));
takeScreenshot("xray_opacity", Duration.ofMillis(300));
runWurstCommand("t X-Ray off");
clearChat();

// Exposed only + opacity
runWurstCommand("setcheckbox X-Ray only_show_exposed on");
runWurstCommand("setslider X-Ray opacity 0.5");
runWurstCommand("t X-Ray on");
takeScreenshot("xray_exposed_only_opacity", Duration.ofMillis(250));
takeScreenshot("xray_exposed_only_opacity", Duration.ofMillis(300));
runWurstCommand("t X-Ray off");
clearChat();

Expand Down

0 comments on commit 17f31ba

Please sign in to comment.