File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Common/src/main/java/at/petrak/hexcasting/api/casting/mishaps Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ import at.petrak.hexcasting.api.pigment.FrozenPigment
1010import net.minecraft.network.chat.Component
1111import net.minecraft.world.item.DyeColor
1212
13- class MishapInvalidPattern (val pattern : HexPattern ? = null ) : Mishap() {
13+ class MishapInvalidPattern (val pattern : HexPattern ? ) : Mishap() {
14+ @Deprecated(" Provide the pattern that caused the mishap as an argument" )
15+ constructor () : this (null ) {}
16+
1417 override fun accentColor (ctx : CastingEnvironment , errorCtx : Context ): FrozenPigment =
1518 dyeColor(DyeColor .YELLOW )
1619
@@ -22,6 +25,6 @@ class MishapInvalidPattern(val pattern: HexPattern? = null) : Mishap() {
2225
2326 override fun errorMessage (ctx : CastingEnvironment , errorCtx : Context ): Component ? {
2427 if (pattern == null ) return error(" invalid_pattern_generic" )
25- else return error(" invalid_pattern" , PatternIota .display(pattern))
28+ return error(" invalid_pattern" , PatternIota .display(pattern))
2629 }
2730}
You can’t perform that action at this time.
0 commit comments