summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2012-01-27 19:29:12 +0100
committerErik Broes <erikbroes@grum.nl>2012-01-27 19:29:33 +0100
commit16d3b705c5d6643a4269f0c9d49a0745426753d4 (patch)
tree3d8c213445ab01f9ce82ce22ad6a638f039653a4 /src/main/java/net
parent98fd1a36067af69ca311d31007ceaebe3191b80e (diff)
downloadcraftbukkit-16d3b705c5d6643a4269f0c9d49a0745426753d4.tar
craftbukkit-16d3b705c5d6643a4269f0c9d49a0745426753d4.tar.gz
craftbukkit-16d3b705c5d6643a4269f0c9d49a0745426753d4.tar.lz
craftbukkit-16d3b705c5d6643a4269f0c9d49a0745426753d4.tar.xz
craftbukkit-16d3b705c5d6643a4269f0c9d49a0745426753d4.zip
Fix 'Block Transmute'. Bug where you could change the data of a block 'on demand'.
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/Chunk.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
index 105d9e7f..0bb437d0 100644
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
@@ -316,6 +316,8 @@ public class Chunk {
}
}
+ if ((this.b[i << this.world.heightBitsPlusFour | k << this.world.heightBits | j] & 255) != l) return false; // CraftBukkit
+
this.g.a(i, j, k, i1);
if (!this.world.worldProvider.f) {
if (Block.lightBlock[b0 & 255] != 0) {