diff options
author | zml2008 <zach@zachsthings.com> | 2012-03-13 19:38:39 -0700 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-21 20:32:17 -0400 |
commit | 8aee4c3f563f8a6e5e2f5b3233c25097487bf6c4 (patch) | |
tree | 93b30ead7171fb8bc06644f0bb7a30d8aab31b78 /src/main/java/net/minecraft/server/BlockMushroom.java | |
parent | 27acb4c41e118a696b001770a16bd84020a26f36 (diff) | |
download | craftbukkit-8aee4c3f563f8a6e5e2f5b3233c25097487bf6c4.tar craftbukkit-8aee4c3f563f8a6e5e2f5b3233c25097487bf6c4.tar.gz craftbukkit-8aee4c3f563f8a6e5e2f5b3233c25097487bf6c4.tar.lz craftbukkit-8aee4c3f563f8a6e5e2f5b3233c25097487bf6c4.tar.xz craftbukkit-8aee4c3f563f8a6e5e2f5b3233c25097487bf6c4.zip |
[Bleeding] Added support for all TreeType entries to CraftWorld.generateTree(). Addresses BUKKIT-1161
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockMushroom.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockMushroom.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/BlockMushroom.java b/src/main/java/net/minecraft/server/BlockMushroom.java index 8a903070..337d3081 100644 --- a/src/main/java/net/minecraft/server/BlockMushroom.java +++ b/src/main/java/net/minecraft/server/BlockMushroom.java @@ -3,6 +3,7 @@ package net.minecraft.server; import java.util.ArrayList; import java.util.Random; // CraftBukkit start +import org.bukkit.BlockChangeDelegate; import org.bukkit.Location; import org.bukkit.TreeType; import org.bukkit.block.BlockState; @@ -109,7 +110,7 @@ public class BlockMushroom extends BlockFlower { worldgenhugemushroom = new WorldGenHugeMushroom(1); } if (worldgenhugemushroom != null && event != null) { - grown = worldgenhugemushroom.grow(world, random, i, j, k, event, itemstack, world.getWorld()); + grown = worldgenhugemushroom.grow((BlockChangeDelegate)world, random, i, j, k, event, itemstack, world.getWorld()); if (event.isFromBonemeal() && itemstack != null) { --itemstack.count; } |