From 786fdfb9fed75ebabfb4648a824ff39de91fbc35 Mon Sep 17 00:00:00 2001 From: Tahg Date: Fri, 11 Mar 2011 00:36:19 -0500 Subject: [PATCH] NPE fix in redstone --- src/main/java/net/minecraft/server/BlockRedstoneWire.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/BlockRedstoneWire.java b/src/main/java/net/minecraft/server/BlockRedstoneWire.java index e312fa84f6..88dda17bbd 100644 --- a/src/main/java/net/minecraft/server/BlockRedstoneWire.java +++ b/src/main/java/net/minecraft/server/BlockRedstoneWire.java @@ -280,7 +280,7 @@ public class BlockRedstoneWire extends Block { if (!flag) { this.b_(world, i, j, k, i1); world.e(i, j, k, 0); - } else if(Block.byId[l].c() || Block.DIODE_OFF.id == l && Block.DIODE_ON.id == l) { //condition added by Craftbukkit + } else if((Block.byId[l] != null && Block.byId[l].c()) || Block.DIODE_OFF.id == l && Block.DIODE_ON.id == l) { //condition added by Craftbukkit this.g(world, i, j, k); }