From 78c1bfef53d017c7d67576d6649d52a13a303668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E9=9B=A8=E8=90=BD?= Date: Fri, 18 Oct 2024 21:45:15 +0800 Subject: [PATCH] Fix crash when Explosion. (Closes #1531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 秋雨落 --- .../arclight/common/mixin/core/world/level/ExplosionMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/level/ExplosionMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/level/ExplosionMixin.java index 1b4821265..60dd962a9 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/level/ExplosionMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/level/ExplosionMixin.java @@ -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()) {