Skip to content

Commit

Permalink
Fix crash when Explosion. (Closes #1531)
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Oct 18, 2024
1 parent 97e6107 commit 78c1bfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public abstract class ExplosionMixin implements ExplosionBridge {
DecorationOps.callsite().invoke(instance, level, pos, explosion, biConsumer);
}

@Redirect(method = "finalizeExplosion", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/Level;setBlockAndUpdate(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)Z"))
@Decorate(method = "finalizeExplosion", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/Level;setBlockAndUpdate(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;)Z"))
private boolean arclight$blockIgnite(Level instance, BlockPos blockPos, BlockState blockState) throws Throwable {
BlockIgniteEvent event = CraftEventFactory.callBlockIgniteEvent(this.level, blockPos, (Explosion) (Object) this);
if (event.isCancelled()) {
Expand Down

0 comments on commit 78c1bfe

Please sign in to comment.