diff --git a/build.gradle b/build.gradle
index 985285b5..a9e1c969 100644
--- a/build.gradle
+++ b/build.gradle
@@ -57,6 +57,7 @@ loom {
ideConfigGenerated true
name 'Client Gametest'
property 'fabric.client.gametest'
+ property 'devauth.enabled', 'false'
programArgs '--username', 'GametestUser'
runDir 'runGametest'
source sourceSets.clientGametest
@@ -160,11 +161,13 @@ tasks.register('cleanGametestRunDir', Delete) {
// hack to make sure run directory is cleaned before the gametests are run
ideaSyncTask.doLast {
def gametestXml = file('.idea/runConfigurations/Client_Gametest.xml').readLines()
- def index = gametestXml.findIndexOf { it.endsWith '' }
- assert index >= 0
- def endIndex = gametestXml.findIndexOf(index) { it.endsWith('') }
- gametestXml.add(endIndex, '')
- file('.idea/runConfigurations/Client_Gametest.xml').write(gametestXml.join('\n'))
+ if (!gametestXml.any { it.contains('cleanGametestRunDir') }) {
+ def index = gametestXml.findIndexOf { it.endsWith '' }
+ assert index >= 0
+ def endIndex = gametestXml.findIndexOf(index) { it.endsWith('') }
+ gametestXml.add(endIndex, '')
+ file('.idea/runConfigurations/Client_Gametest.xml').write(gametestXml.join('\n'))
+ }
}
runClientGametest.dependsOn cleanGametestRunDir
diff --git a/gradle.properties b/gradle.properties
index d285311c..a93b25f0 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -19,7 +19,7 @@ org.gradle.jvmargs=-Xmx2G
# Dependencies
# also check this on https://fabricmc.net/develop/
- fabric_version=0.113.0+1.21.4
+ fabric_version=0.114.1+1.21.4
clientarguments_version=1.10.1
betterconfig_version=2.1.2
seedfinding_core_version=1.200.1
diff --git a/src/clientGametest/java/net/earthcomputer/clientcommands/gametest/BannedActionGametest.java b/src/clientGametest/java/net/earthcomputer/clientcommands/gametest/BannedActionGametest.java
index eda96a59..cd4fc7f9 100644
--- a/src/clientGametest/java/net/earthcomputer/clientcommands/gametest/BannedActionGametest.java
+++ b/src/clientGametest/java/net/earthcomputer/clientcommands/gametest/BannedActionGametest.java
@@ -307,6 +307,7 @@ private static void testItemBreak(ClientGameTestContext context, TestSingleplaye
runClientCommand(context, "clook cardinal down");
context.waitTick();
context.getInput().pressKey(options -> options.keyUse);
+ context.waitTick();
if (Configs.playerCrackState.knowsSeed()) {
throw new AssertionError("Didn't trigger item break detection");