2023-07-23 05:54:02 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jacob Litewski <jacob.litewski@gmail.com>
|
|
|
|
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
|
2024-01-14 16:31:39 +01:00
|
|
|
index 79f1fb45447350b5bedee8ce3efe6c150aa9772c..617c35f8e2877be193693548b5af17c50d013e47 100644
|
2023-07-23 05:54:02 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/block/BuddingAmethystBlock.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/block/BuddingAmethystBlock.java
|
2023-12-06 17:34:54 +01:00
|
|
|
@@ -45,7 +45,13 @@ public class BuddingAmethystBlock extends AmethystBlock {
|
2023-07-23 05:54:02 +02:00
|
|
|
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);
|
|
|
|
+ }
|
2024-01-14 16:31:39 +01:00
|
|
|
+ // Paper end - Have Amethyst throw both spread and grow events
|
2023-07-23 05:54:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|