more NPE fixes regarding redstone

This commit is contained in:
Tahg
2011-03-11 20:47:59 -05:00
parent 5c4f1d75b5
commit 79ccc5320a
3 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ public class BlockPumpkin extends Block {
// Craftbukkit start
public void a(World world, int i, int j, int k, int l) {
if (net.minecraft.server.Block.byId[l].c()) {
if (net.minecraft.server.Block.byId[l] != null && net.minecraft.server.Block.byId[l].c()) {
CraftWorld craftWorld = ((WorldServer) world).getWorld();
CraftServer server = ((WorldServer) world).getServer();
org.bukkit.block.Block block = craftWorld.getBlockAt(i, j, k);