From cd7a91990767f7413e625de20abe1d319b602268 Mon Sep 17 00:00:00 2001 From: direwolf20 <39863894+Direwolf20-MC@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:08:12 -0500 Subject: [PATCH] Added an extra spawnDropsAtPos clear command due to #275 --- .../com/direwolf20/justdirethings/common/events/BlockEvents.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/direwolf20/justdirethings/common/events/BlockEvents.java b/src/main/java/com/direwolf20/justdirethings/common/events/BlockEvents.java index 1bb6b31b..0f147f74 100644 --- a/src/main/java/com/direwolf20/justdirethings/common/events/BlockEvents.java +++ b/src/main/java/com/direwolf20/justdirethings/common/events/BlockEvents.java @@ -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 } }