diff --git a/paper-server/nms-patches/net/minecraft/world/level/block/BlockCauldron.patch b/paper-server/nms-patches/net/minecraft/world/level/block/BlockCauldron.patch new file mode 100644 index 0000000000..fdb95b71bf --- /dev/null +++ b/paper-server/nms-patches/net/minecraft/world/level/block/BlockCauldron.patch @@ -0,0 +1,27 @@ +--- a/net/minecraft/world/level/block/BlockCauldron.java ++++ b/net/minecraft/world/level/block/BlockCauldron.java +@@ -11,6 +11,10 @@ + import net.minecraft.world.level.material.FluidType; + import net.minecraft.world.level.material.FluidTypes; + ++// CraftBukkit start ++import org.bukkit.event.block.CauldronLevelChangeEvent; ++// CraftBukkit end ++ + public class BlockCauldron extends AbstractCauldronBlock { + + private static final float RAIN_FILL_CHANCE = 0.05F; +@@ -51,11 +55,11 @@ + @Override + protected void a(IBlockData iblockdata, World world, BlockPosition blockposition, FluidType fluidtype) { + if (fluidtype == FluidTypes.WATER) { +- world.setTypeUpdate(blockposition, Blocks.WATER_CAULDRON.getBlockData()); ++ LayeredCauldronBlock.changeLevel(iblockdata, world, blockposition, Blocks.WATER_CAULDRON.getBlockData(), null, CauldronLevelChangeEvent.ChangeReason.NATURAL_FILL); // CraftBukkit + world.triggerEffect(1047, blockposition, 0); + world.a((Entity) null, GameEvent.FLUID_PLACE, blockposition); + } else if (fluidtype == FluidTypes.LAVA) { +- world.setTypeUpdate(blockposition, Blocks.LAVA_CAULDRON.getBlockData()); ++ LayeredCauldronBlock.changeLevel(iblockdata, world, blockposition, Blocks.LAVA_CAULDRON.getBlockData(), null, CauldronLevelChangeEvent.ChangeReason.NATURAL_FILL); // CraftBukkit + world.triggerEffect(1046, blockposition, 0); + world.a((Entity) null, GameEvent.FLUID_PLACE, blockposition); + }