Fix client test resources dir (#1269)

This commit is contained in:
modmuss
2025-02-28 09:50:11 +00:00
committed by GitHub
parent a21db850ea
commit 8b0e718573

View File

@@ -103,7 +103,7 @@ public abstract class FabricApiTesting extends FabricApiAbstractSourceSet {
if (settings.getEnableClientGameTests().get()) {
// Not ideal as there may be multiple resources directories, if this isnt correct the mod will need to override this.
final File resourcesDir = testSourceSet.getResources().getFiles().stream().findAny().orElse(null);
final File resourcesDir = testSourceSet.getResources().getSrcDirs().stream().findFirst().orElse(null);
RunConfigSettings clientGameTest = extension.getRunConfigs().create("clientGameTest", run -> {
run.inherit(extension.getRunConfigs().getByName("client"));