Skip to content

Commit

Permalink
minor fix with custom blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kwazedilla committed Nov 26, 2024
1 parent 15de5d2 commit cd36e78
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class DecomposeTask(

if (blockData.material.isAir) continue

if (!BlockBreakEvent(block, player).callEvent()) continue
val testEvent = BlockBreakEvent(block, player)
testEvent.isDropItems = false

if (!testEvent.callEvent()) continue

if (firstBlock == null) { firstBlock = blockData }

Expand Down

0 comments on commit cd36e78

Please sign in to comment.