diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockNylium.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/level/block/BlockNylium.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockNylium.patch b/patch-remap/og/net/minecraft/world/level/block/BlockNylium.patch new file mode 100644 index 0000000000..3e7fcfebe7 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/level/block/BlockNylium.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/world/level/block/BlockNylium.java ++++ b/net/minecraft/world/level/block/BlockNylium.java +@@ -41,6 +41,11 @@ + @Override + public 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()); + } + |