Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MoriyaShiine committed Oct 18, 2024
1 parent 31cc073 commit 1d7f66c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ public void affectWorld(boolean particles) {
}
}
boolean canDestroy = !state.isAir();
if (effect != BlockBreakEffect.AQUATIC) {
if (!state.getFluidState().isEmpty()) {
canDestroy = false;
}
if (effect != BlockBreakEffect.AQUATIC && !state.getFluidState().isEmpty()) {
canDestroy = false;
}
if (canDestroy) {
if (state.getBlock().shouldDropItemsOnExplosion(this) && world instanceof ServerWorld serverWorld) {
Expand Down

0 comments on commit 1d7f66c

Please sign in to comment.