Skip to content

Commit

Permalink
Added an extra spawnDropsAtPos clear command due to #275
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Dec 6, 2024
1 parent 7293985 commit cd7a919
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static void BlockBreakEvent(BlockEvent.BreakEvent event) {
alreadyBreaking = true;
toggleableTool.mineBlocksAbility(itemStack, event.getPlayer().level(), event.getPos(), event.getPlayer());
alreadyBreaking = false;
spawnDropsAtPos = BlockPos.ZERO;
event.setCanceled(true); //Cancel the original block broken, since its handled in the mineBlocksAbility
}
}
Expand Down

0 comments on commit cd7a919

Please sign in to comment.