Skip to content

Commit dd8d76e

Browse files
committed
add cause in ThrowableCCESuppression
1 parent dbc8642 commit dd8d76e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/io/github/optijava/opt_carpet_addition/logger/cceSuppressionCrashLogger/ThrowableCCESuppression.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
public class ThrowableCCESuppression extends RuntimeException{
66
public final BlockPos pos;
77

8-
public ThrowableCCESuppression(String message, BlockPos pos) {
9-
super(message);
8+
public ThrowableCCESuppression(String message, BlockPos pos, Throwable cause) {
9+
super(message, cause);
1010
this.pos = pos;
1111
}
1212
}

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/cceSuppressionCrashFix/ShulkerBoxBlock_Mixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void injectGetComparatorOutput(BlockState state, World world, BlockPos po
2727
try {
2828
var1 = ScreenHandler.calculateComparatorOutput((Inventory)((Object)world.getBlockEntity(pos)));
2929
} catch (ClassCastException e) {
30-
throw new ThrowableCCESuppression(e.getMessage(), pos);
30+
throw new ThrowableCCESuppression(e.getMessage(), pos, e);
3131
}
3232
cir.setReturnValue(var1);
3333
} else {

0 commit comments

Comments
 (0)