2021-07-15 12:29:38 +02:00
|
|
|
--- a/net/minecraft/world/level/block/BlockNylium.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockNylium.java
|
2022-02-28 16:00:00 +01:00
|
|
|
@@ -31,6 +31,11 @@
|
2021-07-15 12:29:38 +02:00
|
|
|
@Override
|
2021-11-21 23:00:00 +01:00
|
|
|
public void randomTick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, Random random) {
|
|
|
|
if (!canBeNylium(iblockdata, worldserver, blockposition)) {
|
2021-07-15 12:29:38 +02:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.NETHERRACK.defaultBlockState()).isCancelled()) {
|
2021-07-15 12:29:38 +02:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
worldserver.setBlockAndUpdate(blockposition, Blocks.NETHERRACK.defaultBlockState());
|
2021-07-15 12:29:38 +02:00
|
|
|
}
|
|
|
|
|