fix gradle again...
by specifying jar it should still be faster in general, but...
This commit is contained in:
parent
1ba580f444
commit
9aa3019571
2 changed files with 16 additions and 3 deletions
|
@ -46,8 +46,6 @@ object OpExtinguish : SpellOperator {
|
|||
var successes = 0
|
||||
while (todo.isNotEmpty() && successes <= MAX_DESTROY_COUNT) {
|
||||
val here = todo.removeFirst()
|
||||
val distFromFocus =
|
||||
ctx.caster.position().distanceToSqr(Vec3.atCenterOf(here))
|
||||
val distFromTarget =
|
||||
target.distanceTo(Vec3.atCenterOf(here)) // max distance to prevent runaway shenanigans
|
||||
if (ctx.canEditBlockAt(here) && distFromTarget < 10 && seen.add(here)) {
|
||||
|
|
|
@ -156,7 +156,6 @@ dependencies {
|
|||
}
|
||||
|
||||
mixin {
|
||||
add project(":Common").sourceSets.main, "hexcasting.mixins.refmap.json"
|
||||
add sourceSets.main, "hexcasting.mixins.refmap.json"
|
||||
config "hexplat.mixins.json"
|
||||
config "hexcasting_forge.mixins.json"
|
||||
|
@ -178,6 +177,22 @@ sourceSets {
|
|||
test.kotlin.srcDirs += 'src/main/java'
|
||||
}
|
||||
|
||||
// https://discord.com/channels/313125603924639766/733055378371117127/980968358658838540
|
||||
// > It wint generate a refmap if there are jo changes source files
|
||||
// > Since the last build
|
||||
// > Gradle task execution avoidance breaks it that way
|
||||
// > At one point i got it to work reliably bu forcing some specific task to always run i just don't remember the syntax and which task it was
|
||||
// > It might have been compileJava
|
||||
jar {
|
||||
println "Forcing re-compile of Java to include refmap"
|
||||
tasks.withType(JavaCompile) {
|
||||
outputs.upToDateWhen { false }
|
||||
}
|
||||
compileKotlin {
|
||||
outputs.upToDateWhen { false }
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
from project(":Common").sourceSets.main.resources
|
||||
inputs.property "version", project.version
|
||||
|
|
Loading…
Reference in a new issue