mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
15 lines
704 B
Diff
15 lines
704 B
Diff
|
--- a/net/minecraft/world/level/block/BlockNylium.java
|
||
|
+++ b/net/minecraft/world/level/block/BlockNylium.java
|
||
|
@@ -31,6 +31,11 @@
|
||
|
@Override
|
||
|
public void tick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, Random random) {
|
||
|
if (!b(iblockdata, (IWorldReader) worldserver, blockposition)) {
|
||
|
+ // CraftBukkit start
|
||
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.NETHERRACK.getBlockData()).isCancelled()) {
|
||
|
+ return;
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
worldserver.setTypeUpdate(blockposition, Blocks.NETHERRACK.getBlockData());
|
||
|
}
|
||
|
|