diff options
Diffstat (limited to 'patches/server/0843-Make-Amethyst-throw-both-Spread-and-Grow-Events.patch')
-rw-r--r-- | patches/server/0843-Make-Amethyst-throw-both-Spread-and-Grow-Events.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0843-Make-Amethyst-throw-both-Spread-and-Grow-Events.patch b/patches/server/0843-Make-Amethyst-throw-both-Spread-and-Grow-Events.patch new file mode 100644 index 0000000000..301b345fb9 --- /dev/null +++ b/patches/server/0843-Make-Amethyst-throw-both-Spread-and-Grow-Events.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jacob Litewski <[email protected]> +Date: Tue, 13 Jun 2023 19:16:39 -0400 +Subject: [PATCH] Make Amethyst throw both Spread and Grow Events + + +diff --git a/src/main/java/net/minecraft/world/level/block/BuddingAmethystBlock.java b/src/main/java/net/minecraft/world/level/block/BuddingAmethystBlock.java +index 6c402bfd9bed54cbb9b337d3528fdcffbd3d87c0..8920855b07a31715327b8102c7faafc9f916825d 100644 +--- a/src/main/java/net/minecraft/world/level/block/BuddingAmethystBlock.java ++++ b/src/main/java/net/minecraft/world/level/block/BuddingAmethystBlock.java +@@ -45,7 +45,13 @@ public class BuddingAmethystBlock extends AmethystBlock { + if (block != null) { + BlockState iblockdata2 = (BlockState) ((BlockState) block.defaultBlockState().setValue(AmethystClusterBlock.FACING, enumdirection)).setValue(AmethystClusterBlock.WATERLOGGED, iblockdata1.getFluidState().getType() == Fluids.WATER); + ++ // Paper start - Have Amethyst throw both spread and grow events ++ if (block == Blocks.SMALL_AMETHYST_BUD) { + org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(world, pos, blockposition1, iblockdata2); // CraftBukkit ++ } else { ++ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, blockposition1, iblockdata2); ++ } ++ // Paper end - Have Amethyst throw both spread and grow events + } + + } |