falky's words of power to get more compile errors

This commit is contained in:
gamma-delta 2022-05-07 12:02:46 -05:00
parent 2464d9b748
commit d76b370eee
3 changed files with 7 additions and 4 deletions

View file

@ -3,15 +3,16 @@ package at.petrak.hexcasting.api.spell.casting
import at.petrak.hexcasting.api.advancements.HexAdvancementTriggers
import at.petrak.hexcasting.api.block.circle.BlockEntityAbstractImpetus
import at.petrak.hexcasting.api.misc.FrozenColorizer
import at.petrak.hexcasting.api.mod.HexApiItems
import at.petrak.hexcasting.api.mod.HexApiSounds
import at.petrak.hexcasting.api.mod.HexStatistics
import at.petrak.hexcasting.api.spell.ParticleSpray
import at.petrak.hexcasting.api.spell.RenderedSpell
import at.petrak.hexcasting.api.spell.mishaps.Mishap
import at.petrak.hexcasting.common.lib.HexItems
import net.minecraft.Util
import net.minecraft.network.chat.TranslatableComponent
import net.minecraft.sounds.SoundSource
import net.minecraft.world.item.DyeColor
import net.minecraft.world.item.ItemStack
/**
@ -83,7 +84,7 @@ sealed class OperatorSideEffect {
spray.sprayParticles(
harness.ctx.world,
FrozenColorizer(
ItemStack(HexApiItems.COLORIZER_RED),
ItemStack(HexItems.DYE_COLORIZERS[DyeColor.RED]!!),
Util.NIL_UUID
)
)

View file

@ -1,11 +1,11 @@
package at.petrak.hexcasting.api.spell.mishaps
import at.petrak.hexcasting.api.misc.FrozenColorizer
import at.petrak.hexcasting.api.mod.HexApiItems
import at.petrak.hexcasting.api.spell.ParticleSpray
import at.petrak.hexcasting.api.spell.SpellDatum
import at.petrak.hexcasting.api.spell.casting.CastingContext
import at.petrak.hexcasting.api.spell.math.HexPattern
import at.petrak.hexcasting.common.lib.HexItems
import net.minecraft.ChatFormatting
import net.minecraft.Util
import net.minecraft.network.chat.Component
@ -36,7 +36,7 @@ sealed class Mishap : Throwable() {
protected fun dyeColor(color: DyeColor): FrozenColorizer =
FrozenColorizer(
ItemStack(HexApiItems.getColorizer(color)),
ItemStack(HexItems.DYE_COLORIZERS[color]!!),
Util.NIL_UUID
)

View file

@ -54,3 +54,5 @@ subprojects {
enabled = false
}
}
allprojects { gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xmaxerrs" << "1000" } } }