--- a/net/minecraft/world/level/block/BlockMushroom.java +++ b/net/minecraft/world/level/block/BlockMushroom.java @@ -18,6 +18,10 @@ import net.minecraft.world.phys.shapes.VoxelShape; import net.minecraft.world.phys.shapes.VoxelShapeCollision; +// CraftBukkit start +import org.bukkit.TreeType; +// CraftBukkit end + public class BlockMushroom extends BlockPlant implements IBlockFragilePlantElement { protected static final float AABB_OFFSET = 3.0F; @@ -63,7 +67,7 @@ } if (worldserver.isEmptyBlock(blockposition2) && iblockdata.canSurvive(worldserver, blockposition2)) { - worldserver.setBlock(blockposition2, iblockdata, 2); + org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(worldserver, blockposition, blockposition2, iblockdata, 2); // CraftBukkit } } @@ -89,6 +93,7 @@ return false; } else { worldserver.removeBlock(blockposition, false); + BlockSapling.treeType = (this == Blocks.BROWN_MUSHROOM) ? TreeType.BROWN_MUSHROOM : TreeType.BROWN_MUSHROOM; // CraftBukkit if (((WorldGenFeatureConfigured) ((Holder) optional.get()).value()).place(worldserver, worldserver.getChunkSource().getGenerator(), randomsource, blockposition)) { return true; } else {