mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-11 02:37:36 +01:00
9da047989c
By: md_5 <git@md-5.net>
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
--- a/net/minecraft/world/level/block/BlockMushroom.java
|
|
+++ b/net/minecraft/world/level/block/BlockMushroom.java
|
|
@@ -16,6 +16,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 VoxelShape a = Block.a(5.0D, 0.0D, 5.0D, 11.0D, 6.0D, 11.0D);
|
|
@@ -58,7 +62,7 @@
|
|
}
|
|
|
|
if (worldserver.isEmpty(blockposition2) && iblockdata.canPlace(worldserver, blockposition2)) {
|
|
- worldserver.setTypeAndData(blockposition2, iblockdata, 2);
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(worldserver, blockposition, blockposition2, iblockdata, 2); // CraftBukkit
|
|
}
|
|
}
|
|
|
|
@@ -82,6 +86,7 @@
|
|
WorldGenFeatureConfigured worldgenfeatureconfigured;
|
|
|
|
if (this == Blocks.BROWN_MUSHROOM) {
|
|
+ BlockSapling.treeType = TreeType.BROWN_MUSHROOM; // CraftBukkit
|
|
worldgenfeatureconfigured = BiomeDecoratorGroups.HUGE_BROWN_MUSHROOM;
|
|
} else {
|
|
if (this != Blocks.RED_MUSHROOM) {
|
|
@@ -89,6 +94,7 @@
|
|
return false;
|
|
}
|
|
|
|
+ BlockSapling.treeType = TreeType.RED_MUSHROOM; // CraftBukkit
|
|
worldgenfeatureconfigured = BiomeDecoratorGroups.HUGE_RED_MUSHROOM;
|
|
}
|
|
|