diff options
Diffstat (limited to 'nms-patches/BlockMushroom.patch')
-rw-r--r-- | nms-patches/BlockMushroom.patch | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/nms-patches/BlockMushroom.patch b/nms-patches/BlockMushroom.patch index e92c3299..808c520c 100644 --- a/nms-patches/BlockMushroom.patch +++ b/nms-patches/BlockMushroom.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/BlockMushroom.java 2014-11-28 17:43:42.925707439 +0000 -+++ src/main/java/net/minecraft/server/BlockMushroom.java 2014-11-28 17:38:23.000000000 +0000 +--- /home/matt/mc-dev-private//net/minecraft/server/BlockMushroom.java 2015-02-26 22:40:22.183608144 +0000 ++++ src/main/java/net/minecraft/server/BlockMushroom.java 2015-02-26 22:40:22.183608144 +0000 @@ -3,6 +3,12 @@ import java.util.Iterator; import java.util.Random; @@ -21,13 +21,11 @@ if (random.nextInt(25) == 0) { int i = 5; boolean flag = true; -@@ -39,8 +46,20 @@ - blockposition2 = blockposition.a(random.nextInt(3) - 1, random.nextInt(2) - random.nextInt(2), random.nextInt(3) - 1); +@@ -40,7 +47,19 @@ } -- if (world.isEmpty(blockposition2) && this.f(world, blockposition2, this.getBlockData())) { + if (world.isEmpty(blockposition2) && this.f(world, blockposition2, this.getBlockData())) { - world.setTypeAndData(blockposition2, this.getBlockData(), 2); -+ if (world.isEmpty(blockposition2) && this.f(world, blockposition2, this.getBlockData())) { + // CraftBukkit start + // world.setTypeAndData(blockposition2, this.getBlockData(), 2); + org.bukkit.World bworld = world.getWorld(); @@ -49,9 +47,9 @@ if (this == Blocks.BROWN_MUSHROOM) { + BlockSapling.treeType = TreeType.BROWN_MUSHROOM; // CraftBukkit - worldgenhugemushroom = new WorldGenHugeMushroom(0); + worldgenhugemushroom = new WorldGenHugeMushroom(Blocks.BROWN_MUSHROOM_BLOCK); } else if (this == Blocks.RED_MUSHROOM) { + BlockSapling.treeType = TreeType.RED_MUSHROOM; // CraftBukkit - worldgenhugemushroom = new WorldGenHugeMushroom(1); + worldgenhugemushroom = new WorldGenHugeMushroom(Blocks.RED_MUSHROOM_BLOCK); } |