2021-03-15 23:00:00 +01:00
|
|
|
--- 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;
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
+// CraftBukkit start
|
|
|
|
+import org.bukkit.TreeType;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
|
|
|
public class BlockMushroom extends BlockPlant implements IBlockFragilePlantElement {
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
protected static final VoxelShape a = Block.a(5.0D, 0.0D, 5.0D, 11.0D, 6.0D, 11.0D);
|
2021-03-15 23:00:00 +01:00
|
|
|
@@ -58,7 +62,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
2019-12-10 23:00:00 +01:00
|
|
|
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
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-15 23:00:00 +01:00
|
|
|
@@ -82,6 +86,7 @@
|
2019-12-10 23:00:00 +01:00
|
|
|
WorldGenFeatureConfigured worldgenfeatureconfigured;
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
if (this == Blocks.BROWN_MUSHROOM) {
|
|
|
|
+ BlockSapling.treeType = TreeType.BROWN_MUSHROOM; // CraftBukkit
|
2020-08-11 23:00:00 +02:00
|
|
|
worldgenfeatureconfigured = BiomeDecoratorGroups.HUGE_BROWN_MUSHROOM;
|
2019-12-10 23:00:00 +01:00
|
|
|
} else {
|
|
|
|
if (this != Blocks.RED_MUSHROOM) {
|
2021-03-15 23:00:00 +01:00
|
|
|
@@ -89,6 +94,7 @@
|
2019-12-10 23:00:00 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-11-25 22:32:16 +01:00
|
|
|
+ BlockSapling.treeType = TreeType.RED_MUSHROOM; // CraftBukkit
|
2020-08-11 23:00:00 +02:00
|
|
|
worldgenfeatureconfigured = BiomeDecoratorGroups.HUGE_RED_MUSHROOM;
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|