aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NyliumBlock.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NyliumBlock.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NyliumBlock.java.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NyliumBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NyliumBlock.java.patch
new file mode 100644
index 0000000000..8d555c9360
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/NyliumBlock.java.patch
@@ -0,0 +1,21 @@
+--- a/net/minecraft/world/level/block/NyliumBlock.java
++++ b/net/minecraft/world/level/block/NyliumBlock.java
+@@ -40,10 +39,14 @@
+ }
+
+ @Override
+- @Override
+- public void randomTick(BlockState blockstate, ServerLevel serverlevel, BlockPos blockpos, RandomSource randomsource) {
+- if (!canBeNylium(blockstate, serverlevel, blockpos)) {
+- serverlevel.setBlockAndUpdate(blockpos, Blocks.NETHERRACK.defaultBlockState());
++ public void randomTick(IBlockData state, ServerLevel level, BlockPos pos, RandomSource random) {
++ if (!canBeNylium(state, level, pos)) {
++ // CraftBukkit start
++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(level, pos, Blocks.NETHERRACK.defaultBlockState()).isCancelled()) {
++ return;
++ }
++ // CraftBukkit end
++ level.setBlockAndUpdate(pos, Blocks.NETHERRACK.defaultBlockState());
+ }
+
+ }