diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-03 10:14:53 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-03 10:15:26 +0000 |
commit | 90fae3b579b175164d14bf000d18d49863eb4557 (patch) | |
tree | ae0baab73b09367ad150451c2cf5ce0f39d0de1d /src | |
parent | c6273810a1dce645cc8eb36ae3f21c2cebb03ef4 (diff) | |
download | craftbukkit-90fae3b579b175164d14bf000d18d49863eb4557.tar craftbukkit-90fae3b579b175164d14bf000d18d49863eb4557.tar.gz craftbukkit-90fae3b579b175164d14bf000d18d49863eb4557.tar.lz craftbukkit-90fae3b579b175164d14bf000d18d49863eb4557.tar.xz craftbukkit-90fae3b579b175164d14bf000d18d49863eb4557.zip |
Fixed leaf decay issue - this fixes BUKKIT-948 and BUKKIT-871
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenTrees.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenTrees.java b/src/main/java/net/minecraft/server/WorldGenTrees.java index 40522cfb..8bf16cd4 100644 --- a/src/main/java/net/minecraft/server/WorldGenTrees.java +++ b/src/main/java/net/minecraft/server/WorldGenTrees.java @@ -102,19 +102,19 @@ public class WorldGenTrees extends WorldGenerator { if (k1 == 0 || k1 == Block.LEAVES.id) { this.setTypeAndData(world, i, j + j1, k, Block.LOG.id, this.c); if (this.b && j1 > 0) { - if (random.nextInt(3) > 0 && (world).isEmpty(i - 1, j + j1, k)) { + if (random.nextInt(3) > 0 && world.isEmpty(i - 1, j + j1, k)) { this.setTypeAndData(world, i - 1, j + j1, k, Block.VINE.id, 8); } - if (random.nextInt(3) > 0 && (world).isEmpty(i + 1, j + j1, k)) { + if (random.nextInt(3) > 0 && world.isEmpty(i + 1, j + j1, k)) { this.setTypeAndData(world, i + 1, j + j1, k, Block.VINE.id, 2); } - if (random.nextInt(3) > 0 && (world).isEmpty(i, j + j1, k - 1)) { + if (random.nextInt(3) > 0 && world.isEmpty(i, j + j1, k - 1)) { this.setTypeAndData(world, i, j + j1, k - 1, Block.VINE.id, 1); } - if (random.nextInt(3) > 0 && (world).isEmpty(i, j + j1, k + 1)) { + if (random.nextInt(3) > 0 && world.isEmpty(i, j + j1, k + 1)) { this.setTypeAndData(world, i, j + j1, k + 1, Block.VINE.id, 4); } } @@ -162,7 +162,7 @@ public class WorldGenTrees extends WorldGenerator { // CraftBukkit - Changed world to BlockChangeDelegate private void a(BlockChangeDelegate world, int i, int j, int k, int l) { - world.setRawTypeIdAndData(i, j, k, Block.VINE.id, l); // CraftBukkit - "raw" + ((World)world).setTypeIdAndData(i, j, k, Block.VINE.id, l); // CraftBukkit - Cast int i1 = 4; while (true) { @@ -171,7 +171,7 @@ public class WorldGenTrees extends WorldGenerator { return; } - world.setRawTypeIdAndData(i, j, k, Block.VINE.id, l); // CraftBukkit - "raw" + ((World)world).setRawTypeIdAndData(i, j, k, Block.VINE.id, l); // CraftBukkit - Cast --i1; } } |