2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockMushroom.java
|
|
|
|
+++ b/net/minecraft/server/BlockMushroom.java
|
2018-07-15 02:00:00 +02:00
|
|
|
@@ -3,6 +3,10 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
+// 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);
|
2018-12-10 01:14:39 +01:00
|
|
|
@@ -43,7 +47,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
if (world.isEmpty(blockposition2) && iblockdata.canPlace(world, blockposition2)) {
|
|
|
|
- world.setTypeAndData(blockposition2, iblockdata, 2);
|
|
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(world, blockposition, blockposition2, iblockdata, 2); // CraftBukkit
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-10 01:14:39 +01:00
|
|
|
@@ -66,8 +70,10 @@
|
2018-12-25 22:00:00 +01:00
|
|
|
WorldGenerator<WorldGenFeatureEmptyConfiguration> worldgenerator = null;
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
if (this == Blocks.BROWN_MUSHROOM) {
|
|
|
|
+ BlockSapling.treeType = TreeType.BROWN_MUSHROOM; // CraftBukkit
|
2018-07-15 02:00:00 +02:00
|
|
|
worldgenerator = WorldGenerator.U;
|
2014-11-25 22:32:16 +01:00
|
|
|
} else if (this == Blocks.RED_MUSHROOM) {
|
|
|
|
+ BlockSapling.treeType = TreeType.RED_MUSHROOM; // CraftBukkit
|
2018-07-15 02:00:00 +02:00
|
|
|
worldgenerator = WorldGenerator.T;
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|