summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-07-21 13:32:16 -0400
committerEvilSeph <evilseph@gmail.com>2011-07-21 22:35:58 -0400
commit97a6534ee60f70cdc7395b8a7aa5c57ff1200090 (patch)
tree7787f9677ed24b076961dafdbae8aac081045ea2 /src/main/java/net/minecraft/server
parentbfa22f30258e747d444f99529bd626ed68422d14 (diff)
downloadcraftbukkit-97a6534ee60f70cdc7395b8a7aa5c57ff1200090.tar
craftbukkit-97a6534ee60f70cdc7395b8a7aa5c57ff1200090.tar.gz
craftbukkit-97a6534ee60f70cdc7395b8a7aa5c57ff1200090.tar.lz
craftbukkit-97a6534ee60f70cdc7395b8a7aa5c57ff1200090.tar.xz
craftbukkit-97a6534ee60f70cdc7395b8a7aa5c57ff1200090.zip
Fixed maps crashing/disconnecting the client under certain circumstances.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/ItemWorldMap.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ItemWorldMap.java b/src/main/java/net/minecraft/server/ItemWorldMap.java
index c098aeb6..1995346d 100644
--- a/src/main/java/net/minecraft/server/ItemWorldMap.java
+++ b/src/main/java/net/minecraft/server/ItemWorldMap.java
@@ -101,6 +101,7 @@ public class ItemWorldMap extends ItemWorldMapBase {
if (!flag1) {
--k4;
+ if (k4 <= 0) break; // CraftBukkit
j5 = chunk.getTypeId(l4 + k3, k4 - 1, j4 + l3);
}
} while (!flag1);