From 9dbecd541a68b026dfc9714431a104979a9a7f07 Mon Sep 17 00:00:00 2001 From: Shane Bee Date: Wed, 1 Jan 2025 13:48:24 -0800 Subject: [PATCH] BukkitEventValues - remove future event-block for block break event (#7338) --- .../java/ch/njol/skript/classes/data/BukkitEventValues.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java b/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java index 495d4cbffb9..547243d0d3e 100644 --- a/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java +++ b/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java @@ -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