diff --git a/build.gradle b/build.gradle index 1fe1a4f..069a5a6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1674986648 +//version: 1674988119 /* DO NOT CHANGE THIS FILE! Also, you may replace this file at any time if there is an update available. @@ -375,6 +375,16 @@ configurations.configureEach { } } +// Ensure tests have access to minecraft classes +sourceSets { + test { + java { + compileClasspath += sourceSets.patchedMc.output + sourceSets.mcLauncher.output + runtimeClasspath += sourceSets.patchedMc.output + sourceSets.mcLauncher.output + } + } +} + if (file('addon.gradle').exists()) { apply from: 'addon.gradle' }