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/WorldGenTrees.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/WorldGenTrees.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenTrees.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenTrees.java b/src/main/java/net/minecraft/server/WorldGenTrees.java index bc8f8fac..f62ab02c 100644 --- a/src/main/java/net/minecraft/server/WorldGenTrees.java +++ b/src/main/java/net/minecraft/server/WorldGenTrees.java @@ -162,7 +162,7 @@ public class WorldGenTrees extends WorldGenerator implements BlockSapling.TreeGe // CraftBukkit - Changed world to BlockChangeDelegate private void a(BlockChangeDelegate world, int i, int j, int k, int l) { - ((World)world).setTypeIdAndData(i, j, k, Block.VINE.id, l); // CraftBukkit - Cast + world.setTypeIdAndData(i, j, k, Block.VINE.id, l); int i1 = 4; while (true) { @@ -171,7 +171,7 @@ public class WorldGenTrees extends WorldGenerator implements BlockSapling.TreeGe return; } - ((World)world).setRawTypeIdAndData(i, j, k, Block.VINE.id, l); // CraftBukkit - Cast + world.setTypeIdAndData(i, j, k, Block.VINE.id, l); --i1; } } |