Skip to content

Commit

Permalink
fix CustomDestroyEffectsBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ authored Nov 23, 2024
1 parent 034d7c2 commit 32e2309
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public abstract class ParticleEngineMixin {
@ModifyExpressionValue(method = "destroy", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/state/BlockState;shouldSpawnParticlesOnBreak()Z"))
private boolean port_lib$customDestroyEffects(boolean original, BlockPos blockPos, BlockState blockState) {
if (blockState.getBlock() instanceof CustomDestroyEffectsBlock custom) {
if (!custom.addDestroyEffects(blockState, level, blockPos, (ParticleEngine) (Object) this)) {
if (custom.addDestroyEffects(blockState, level, blockPos, (ParticleEngine) (Object) this)) {
return false;
}
}
Expand Down

0 comments on commit 32e2309

Please sign in to comment.