Skip to content

Commit

Permalink
Add more delays to FreecamHackTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 29, 2024
1 parent 32b3d1f commit 531549c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/net/wurstclient/test/FreecamHackTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

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

import java.time.Duration;

import net.wurstclient.mixinterface.IKeyBinding;

public enum FreecamHackTest
Expand All @@ -22,7 +24,7 @@ public static void testFreecamHack()
// Enable Freecam with default settings
runWurstCommand("setcheckbox Freecam tracer off");
runWurstCommand("t Freecam on");
takeScreenshot("freecam_default");
takeScreenshot("freecam_default", Duration.ofMillis(100));
clearChat();

// Press shift to fly down a bit
Expand All @@ -31,12 +33,12 @@ public static void testFreecamHack()
waitForWorldTicks(5);
submitAndWait(
mc -> IKeyBinding.get(mc.options.sneakKey).simulatePress(false));
takeScreenshot("freecam_down");
takeScreenshot("freecam_down", Duration.ofMillis(300));
clearChat();

// Tracer
runWurstCommand("setcheckbox Freecam tracer on");
takeScreenshot("freecam_tracer");
takeScreenshot("freecam_tracer", Duration.ofMillis(100));
clearChat();

// Clean up
Expand Down

0 comments on commit 531549c

Please sign in to comment.