From 16d3b705c5d6643a4269f0c9d49a0745426753d4 Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Fri, 27 Jan 2012 19:29:12 +0100 Subject: [PATCH] Fix 'Block Transmute'. Bug where you could change the data of a block 'on demand'. --- src/main/java/net/minecraft/server/Chunk.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java index 105d9e7f7d..0bb437d07c 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) {