diff --git a/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt b/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt index e3b290ab..8c4fffa0 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt +++ b/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt @@ -113,7 +113,11 @@ class CastingHarness private constructor( next.evaluate(continuation.next, world, this) } catch (mishap: Mishap) { val pattern = getPatternForFrame(next) - val operator = getOperatorForFrame(next, world) + val operator = try { + getOperatorForFrame(next, world) + } catch (e: Throwable) { + null + } CastResult( continuation, null,