@@ -14,20 +14,28 @@
|
||||
@@ -45,7 +49,7 @@
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,8 +74,10 @@
|
||||
WorldGenerator<WorldGenHugeMushroomConfiguration> worldgenerator = null;
|
||||
@@ -70,14 +74,16 @@
|
||||
WorldGenFeatureConfigured worldgenfeatureconfigured;
|
||||
|
||||
if (this == Blocks.BROWN_MUSHROOM) {
|
||||
- worldgenfeatureconfigured = WorldGenerator.HUGE_BROWN_MUSHROOM.b((WorldGenFeatureConfiguration) BiomeDecoratorGroups.HUGE_BROWN_MUSHROOM);
|
||||
+ BlockSapling.treeType = TreeType.BROWN_MUSHROOM; // CraftBukkit
|
||||
worldgenerator = WorldGenerator.HUGE_BROWN_MUSHROOM;
|
||||
} else if (this == Blocks.RED_MUSHROOM) {
|
||||
+ worldgenfeatureconfigured = WorldGenerator.HUGE_BROWN_MUSHROOM.b(BiomeDecoratorGroups.HUGE_BROWN_MUSHROOM); // CraftBukkit - decompile error
|
||||
} else {
|
||||
if (this != Blocks.RED_MUSHROOM) {
|
||||
worldserver.setTypeAndData(blockposition, iblockdata, 3);
|
||||
return false;
|
||||
}
|
||||
|
||||
- worldgenfeatureconfigured = WorldGenerator.HUGE_RED_MUSHROOM.b((WorldGenFeatureConfiguration) BiomeDecoratorGroups.HUGE_RED_MUSHROOM);
|
||||
+ BlockSapling.treeType = TreeType.RED_MUSHROOM; // CraftBukkit
|
||||
worldgenerator = WorldGenerator.HUGE_RED_MUSHROOM;
|
||||
+ worldgenfeatureconfigured = WorldGenerator.HUGE_RED_MUSHROOM.b(BiomeDecoratorGroups.HUGE_RED_MUSHROOM); // CraftBukkit - decompile error
|
||||
}
|
||||
|
||||
if (worldgenfeatureconfigured.a(worldserver, worldserver.getChunkProvider().getChunkGenerator(), random, blockposition)) {
|
||||
|
||||
Reference in New Issue
Block a user