Skip to content

Commit df15203

Browse files
authored
Ignore already cancelled block breaks to improve plugin compatibility (#4781)
1 parent f5696b7 commit df15203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void blockCreate(BlockPlaceEvent event) {
219219
}
220220
}
221221

222-
@EventHandler(priority = EventPriority.LOWEST)
222+
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
223223
public void blockDestroy(BlockBreakEvent event) {
224224
Player player = event.getPlayer();
225225
Location location = BukkitUtil.adapt(event.getBlock().getLocation());

0 commit comments

Comments
 (0)