diff options
author | md_5 <git@md-5.net> | 2016-03-20 19:02:48 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-20 19:02:48 +1100 |
commit | e56aa4665695cfbed972f03430971ce2f8428c5f (patch) | |
tree | 97bd95d62dbcea17675481ba1cd8e951f0e3b3a0 | |
parent | c91d092bcd5ed17990aca0583092c820a2cc0449 (diff) | |
download | craftbukkit-e56aa4665695cfbed972f03430971ce2f8428c5f.tar craftbukkit-e56aa4665695cfbed972f03430971ce2f8428c5f.tar.gz craftbukkit-e56aa4665695cfbed972f03430971ce2f8428c5f.tar.lz craftbukkit-e56aa4665695cfbed972f03430971ce2f8428c5f.tar.xz craftbukkit-e56aa4665695cfbed972f03430971ce2f8428c5f.zip |
SPIGOT-1988: Chorus Plant Generation
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 593fd63a..86ce61f3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -404,6 +404,8 @@ public class CraftWorld implements World { } public boolean generateTree(Location loc, TreeType type) { + BlockPosition pos = new BlockPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()); + net.minecraft.server.WorldGenerator gen; switch (type) { case BIG_TREE: @@ -459,13 +461,16 @@ public class CraftWorld implements World { case TALL_BIRCH: gen = new WorldGenForest(true, true); break; + case CHORUS_PLANT: + BlockChorusFlower.a(world, pos, rand, 8); + return true; case TREE: default: gen = new WorldGenTrees(true); break; } - return gen.generate(world, rand, new BlockPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ())); + return gen.generate(world, rand, pos); } public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate) { |