SPIGOT-1988: Chorus Plant Generation
This commit is contained in:
parent
c91d092bcd
commit
e56aa46656
@ -404,6 +404,8 @@ public class CraftWorld implements World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean generateTree(Location loc, TreeType type) {
|
public boolean generateTree(Location loc, TreeType type) {
|
||||||
|
BlockPosition pos = new BlockPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ());
|
||||||
|
|
||||||
net.minecraft.server.WorldGenerator gen;
|
net.minecraft.server.WorldGenerator gen;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case BIG_TREE:
|
case BIG_TREE:
|
||||||
@ -459,13 +461,16 @@ public class CraftWorld implements World {
|
|||||||
case TALL_BIRCH:
|
case TALL_BIRCH:
|
||||||
gen = new WorldGenForest(true, true);
|
gen = new WorldGenForest(true, true);
|
||||||
break;
|
break;
|
||||||
|
case CHORUS_PLANT:
|
||||||
|
BlockChorusFlower.a(world, pos, rand, 8);
|
||||||
|
return true;
|
||||||
case TREE:
|
case TREE:
|
||||||
default:
|
default:
|
||||||
gen = new WorldGenTrees(true);
|
gen = new WorldGenTrees(true);
|
||||||
break;
|
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) {
|
public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user