From 8c9f1090a4f91420825493ac070d1cfd9d2e119b Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Tue, 4 Jan 2011 21:19:43 +0000 Subject: More NPEs! --- src/main/java/net/minecraft/server/WorldServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/net/minecraft/server') diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java index da6b8dd4..11d3561c 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -36,14 +36,14 @@ public class WorldServer extends World { @Override public boolean c(int i1, int j1, int k1, int l1) { boolean result = super.c(i1, j1, k1, l1); - world.updateBlock(i1, j1, k1); + if (world != null) world.updateBlock(i1, j1, k1); return result; } @Override public boolean d(int i1, int j1, int k1, int l1) { boolean result = super.d(i1, j1, k1, l1); - world.updateBlock(i1, j1, k1); + if (world != null) world.updateBlock(i1, j1, k1); return result; } -- cgit v1.2.3