diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-04 21:19:43 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-04 21:19:43 +0000 |
commit | 8c9f1090a4f91420825493ac070d1cfd9d2e119b (patch) | |
tree | ca3c51e7e22f53f0da159e9b96bc31b9c69855c8 /src/main/java | |
parent | 4a9c761707fbdaeacadac3cb894aeff8a231e365 (diff) | |
download | craftbukkit-8c9f1090a4f91420825493ac070d1cfd9d2e119b.tar craftbukkit-8c9f1090a4f91420825493ac070d1cfd9d2e119b.tar.gz craftbukkit-8c9f1090a4f91420825493ac070d1cfd9d2e119b.tar.lz craftbukkit-8c9f1090a4f91420825493ac070d1cfd9d2e119b.tar.xz craftbukkit-8c9f1090a4f91420825493ac070d1cfd9d2e119b.zip |
More NPEs!
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldServer.java | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |