mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
14 lines
734 B
Diff
14 lines
734 B
Diff
--- a/net/minecraft/world/level/block/BlockNylium.java
|
|
+++ b/net/minecraft/world/level/block/BlockNylium.java
|
|
@@ -41,6 +41,11 @@
|
|
@Override
|
|
protected void randomTick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, RandomSource randomsource) {
|
|
if (!canBeNylium(iblockdata, worldserver, blockposition)) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.NETHERRACK.defaultBlockState()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
worldserver.setBlockAndUpdate(blockposition, Blocks.NETHERRACK.defaultBlockState());
|
|
}
|
|
|