Skip to content

Commit

Permalink
Fixed #325
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5734 committed Oct 17, 2024
1 parent 65c5b69 commit 7e33213
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void dispatchFabric2Bukkit() {
var level = player.level();
var pos = ((CraftBlock) breakEvent.getBlock()).getPosition();
boolean result = PlayerBlockBreakEvents.BEFORE.invoker().beforeBlockBreak(level, player, pos, block.getBlockState(pos), block.getBlockEntity(pos));
breakEvent.setCancelled(!result);
breakEvent.setCancelled(result);
}
});
}
Expand Down

0 comments on commit 7e33213

Please sign in to comment.