Skip to content

Commit

Permalink
BukkitEventValues - remove future event-block for block break event (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee authored Jan 1, 2025
1 parent a972a6f commit 9dbecd5
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ public final class BukkitEventValues {
EventValues.registerEventValue(BlockBreakEvent.class, Player.class, BlockBreakEvent::getPlayer);
EventValues.registerEventValue(BlockBreakEvent.class, Block.class, BlockEvent::getBlock, TIME_PAST);
EventValues.registerEventValue(BlockBreakEvent.class, Block.class, event -> new DelayedChangeBlock(event.getBlock()));
EventValues.registerEventValue(BlockBreakEvent.class, Block.class, event -> {
BlockState state = event.getBlock().getState();
state.setType(state.getType() == Material.ICE ? Material.WATER : Material.AIR);
state.setRawData((byte) 0);
return new BlockStateBlock(state, true);
}, TIME_FUTURE);
// BlockFromToEvent
EventValues.registerEventValue(BlockFromToEvent.class, Block.class, BlockFromToEvent::getToBlock, TIME_FUTURE);
// BlockIgniteEvent
Expand Down

0 comments on commit 9dbecd5

Please sign in to comment.