diff --git a/Fabric/src/main/java/vazkii/botania/fabric/mixin/ExplosionFabricMixin.java b/Fabric/src/main/java/vazkii/botania/fabric/mixin/ExplosionFabricMixin.java index 7f998b854b..cddfab650e 100644 --- a/Fabric/src/main/java/vazkii/botania/fabric/mixin/ExplosionFabricMixin.java +++ b/Fabric/src/main/java/vazkii/botania/fabric/mixin/ExplosionFabricMixin.java @@ -42,8 +42,8 @@ public abstract class ExplosionFabricMixin { @Shadow public abstract void clearToBlow(); - @Inject(method = "finalizeExplosion", at = @At("HEAD")) - private void onAffectWorld(boolean particles, CallbackInfo ci) { + @Inject(method = "explode", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/Level;getEntities(Lnet/minecraft/world/entity/Entity;Lnet/minecraft/world/phys/AABB;)Ljava/util/List;")) + private void onAffectWorld(CallbackInfo ci) { if (BenevolentGoddessCharmItem.shouldProtectExplosion(level, new Vec3(x, y, z))) { clearToBlow(); } diff --git a/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java b/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java index 46ec6f3ec6..2fde42bbbd 100644 --- a/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java +++ b/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java @@ -373,7 +373,7 @@ private void registerEvents() { } }); // FabricMixinExplosion - bus.addListener((ExplosionEvent e) -> { + bus.addListener((ExplosionEvent.Detonate e) -> { if (BenevolentGoddessCharmItem.shouldProtectExplosion(e.getLevel(), e.getExplosion().getPosition())) { e.getExplosion().clearToBlow(); }