From f188afe794d49b8133b498f1a96732152a50b3da Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 21 Mar 2012 16:01:11 -0500 Subject: [Bleeding] Prevent update inconsistencies on generation/decoration that span chunks. Fixes BUKKIT-871 --- src/main/java/net/minecraft/server/WorldGenTaiga1.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/net/minecraft/server/WorldGenTaiga1.java') diff --git a/src/main/java/net/minecraft/server/WorldGenTaiga1.java b/src/main/java/net/minecraft/server/WorldGenTaiga1.java index edd3056c..ec16d813 100644 --- a/src/main/java/net/minecraft/server/WorldGenTaiga1.java +++ b/src/main/java/net/minecraft/server/WorldGenTaiga1.java @@ -60,7 +60,7 @@ public class WorldGenTaiga1 extends WorldGenerator implements BlockSapling.TreeG } else { l1 = world.getTypeId(i, j - 1, k); if ((l1 == Block.GRASS.id || l1 == Block.DIRT.id) && j < 128 - l - 1) { - world.setRawTypeId(i, j - 1, k, Block.DIRT.id); + this.setTypeAndData(world, i, j - 1, k, Block.DIRT.id, 0); // CraftBukkit l2 = 0; for (i2 = j + l; i2 >= j + i1; --i2) { @@ -71,7 +71,7 @@ public class WorldGenTaiga1 extends WorldGenerator implements BlockSapling.TreeG int j3 = i3 - k; if ((Math.abs(k2) != l2 || Math.abs(j3) != l2 || l2 <= 0) && !Block.n[world.getTypeId(j2, i2, i3)]) { - world.setRawTypeIdAndData(j2, i2, i3, Block.LEAVES.id, 1); + this.setTypeAndData(world, j2, i2, i3, Block.LEAVES.id, 1); // CraftBukkit } } } @@ -86,7 +86,7 @@ public class WorldGenTaiga1 extends WorldGenerator implements BlockSapling.TreeG for (i2 = 0; i2 < l - 1; ++i2) { j2 = world.getTypeId(i, j + i2, k); if (j2 == 0 || j2 == Block.LEAVES.id) { - world.setRawTypeIdAndData(i, j + i2, k, Block.LOG.id, 1); + this.setTypeAndData(world, i, j + i2, k, Block.LOG.id, 1); // CraftBukkit } } -- cgit v1.2.3