diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-05-26 13:48:22 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-05-26 13:48:22 +0100 |
commit | 6903f2024217f0959c015e76b23297af8e3b573f (patch) | |
tree | 690bf275ce19c655bd64eea05be231ed0c318fd6 /src/main/java/net/minecraft/server/WorldGenBigTree.java | |
parent | f463453d73249fe73cf3e23ed37e6cee870c8bf4 (diff) | |
download | craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar.gz craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar.lz craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar.xz craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.zip |
Implemented 1.6!
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldGenBigTree.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenBigTree.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenBigTree.java b/src/main/java/net/minecraft/server/WorldGenBigTree.java index c93785ab..8be99e1b 100644 --- a/src/main/java/net/minecraft/server/WorldGenBigTree.java +++ b/src/main/java/net/minecraft/server/WorldGenBigTree.java @@ -60,8 +60,8 @@ public class WorldGenBigTree extends WorldGenerator { for (double d0 = 0.5D; j1 < i; ++j1) { double d1 = this.j * (double) f * ((double) this.b.nextFloat() + 0.328D); double d2 = (double) this.b.nextFloat() * 2.0D * 3.14159D; - int k1 = (int) (d1 * Math.sin(d2) + (double) this.d[0] + d0); - int l1 = (int) (d1 * Math.cos(d2) + (double) this.d[2] + d0); + int k1 = MathHelper.floor(d1 * Math.sin(d2) + (double) this.d[0] + d0); + int l1 = MathHelper.floor(d1 * Math.cos(d2) + (double) this.d[2] + d0); int[] aint1 = new int[] { k1, j, l1}; int[] aint2 = new int[] { k1, j + this.n, l1}; @@ -291,8 +291,8 @@ public class WorldGenBigTree extends WorldGenerator { for (j = aint2[b1] + b4; i != j; i += b4) { aint3[b1] = aint[b1] + i; - aint3[b2] = (int) ((double) aint[b2] + (double) i * d0); - aint3[b3] = (int) ((double) aint[b3] + (double) i * d1); + aint3[b2] = MathHelper.floor((double) aint[b2] + (double) i * d0); + aint3[b3] = MathHelper.floor((double) aint[b3] + (double) i * d1); int k = this.c.getTypeId(aint3[0], aint3[1], aint3[2]); if (k != 0 && k != 18) { |