Skip to content

Commit

Permalink
fix naval mine
Browse files Browse the repository at this point in the history
  • Loading branch information
MoriyaShiine committed Oct 18, 2024
1 parent 34ceb98 commit 31cc073
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ public void affectWorld(boolean particles) {
world.addParticle(ParticleTypes.BUBBLE_POP, rX, rY, rZ, dX, dY, dZ);
}
}
if (!state.isAir() && state.getFluidState().isEmpty() || state.getBlock() instanceof FluidFillable) {
boolean canDestroy = !state.isAir();
if (effect != BlockBreakEffect.AQUATIC) {
if (!state.getFluidState().isEmpty()) {
canDestroy = false;
}
}
if (canDestroy) {
if (state.getBlock().shouldDropItemsOnExplosion(this) && world instanceof ServerWorld serverWorld) {
BlockEntity blockEntity = world.getBlockEntity(pos) != null ? world.getBlockEntity(pos) : null;
ItemStack stack = Items.NETHERITE_PICKAXE.getDefaultStack();
Expand Down

0 comments on commit 31cc073

Please sign in to comment.