diff options
author | feildmaster <admin@feildmaster.com> | 2012-07-29 02:33:13 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-08-02 04:58:50 -0500 |
commit | a43d621c0138110d2ec362b2eaa8f938f241bb49 (patch) | |
tree | d2ebc0d7a4a969d3257b1b958236428a24117eb1 /src/main/java/net/minecraft/server/ChunkSection.java | |
parent | 08e2923bd4282579ca0cf7af0e6207cba0591e5c (diff) | |
download | craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.gz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.lz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.xz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.zip |
Update CraftBukkit to Minecraft 1.3.1
Diffstat (limited to 'src/main/java/net/minecraft/server/ChunkSection.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ChunkSection.java | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/src/main/java/net/minecraft/server/ChunkSection.java b/src/main/java/net/minecraft/server/ChunkSection.java index 94c967ec..4d38de8a 100644 --- a/src/main/java/net/minecraft/server/ChunkSection.java +++ b/src/main/java/net/minecraft/server/ChunkSection.java @@ -29,7 +29,7 @@ public class ChunkSection { this.f = new NibbleArray(this.d.length, 4); this.h = new NibbleArray(this.d.length, 4); this.g = new NibbleArray(this.d.length, 4); - this.d(); + this.e(); } // CraftBukkit end @@ -48,17 +48,17 @@ public class ChunkSection { if (i1 == 0 && l != 0) { ++this.b; - if (Block.byId[l] != null && Block.byId[l].n()) { + if (Block.byId[l] != null && Block.byId[l].r()) { ++this.c; } } else if (i1 != 0 && l == 0) { --this.b; - if (Block.byId[i1] != null && Block.byId[i1].n()) { + if (Block.byId[i1] != null && Block.byId[i1].r()) { --this.c; } - } else if (Block.byId[i1] != null && Block.byId[i1].n() && (Block.byId[l] == null || !Block.byId[l].n())) { + } else if (Block.byId[i1] != null && Block.byId[i1].r() && (Block.byId[l] == null || !Block.byId[l].r())) { --this.c; - } else if ((Block.byId[i1] == null || !Block.byId[i1].n()) && Block.byId[l] != null && Block.byId[l].n()) { + } else if ((Block.byId[i1] == null || !Block.byId[i1].r()) && Block.byId[l] != null && Block.byId[l].r()) { ++this.c; } @@ -90,7 +90,7 @@ public class ChunkSection { return this.c > 0; } - public int c() { + public int d() { return this.a; } @@ -110,7 +110,7 @@ public class ChunkSection { return this.g.a(i, j, k); } - public void d() { + public void e() { this.b = 0; this.c = 0; @@ -127,7 +127,7 @@ public class ChunkSection { } } else { ++this.b; - if (Block.byId[l].n()) { + if (Block.byId[l].r()) { ++this.c; } } @@ -137,29 +137,23 @@ public class ChunkSection { } } - public void e() {} - - public int f() { - return this.b; - } - public byte[] g() { return this.d; } - public NibbleArray h() { + public NibbleArray i() { return this.e; } - public NibbleArray i() { + public NibbleArray j() { return this.f; } - public NibbleArray j() { + public NibbleArray k() { return this.g; } - public NibbleArray k() { + public NibbleArray l() { return this.h; } |