Skip to content

Commit

Permalink
Fix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavid04 committed Apr 23, 2024
1 parent 2997cbb commit 10f7965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/gdavid/phi/mixin/SpellPieceMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ private void getRawParamValue(SpellContext context, SpellParam<?> param, Callbac
throws SpellRuntimeException {
Object res = callback.getReturnValue();
if (res instanceof PropagatingSpellRuntimeException && !(param instanceof ErrorParam)) {
((PropagatingSpellRuntimeException) res).rethrow(((SpellPiece) (Object) this).getPieceType().isTrick());
var self = (SpellPiece) (Object) this;
boolean suppress = context.cspell.metadata.getFlag(PropagatingSpellRuntimeException.suppressFlag(self));
((PropagatingSpellRuntimeException) res).rethrow(self.getPieceType().isTrick() && !suppress);
}
SpellParam.Side side = paramSides.get(param);
if (!side.isEnabled()) {
Expand Down

0 comments on commit 10f7965

Please sign in to comment.