diff options
author | EvilSeph <evilseph@gmail.com> | 2012-01-29 01:15:55 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-01-29 01:15:55 -0500 |
commit | 1ea0037f490e014c705d93bec9fca0e1a524c3b1 (patch) | |
tree | 065503e373851b528297a30b0fd4f5e92b398eb8 /src/main/java/net/minecraft/server/ItemWorldMap.java | |
parent | 9b635aacc466afc756147ee92ecbe98e1a4f5c76 (diff) | |
download | craftbukkit-1ea0037f490e014c705d93bec9fca0e1a524c3b1.tar craftbukkit-1ea0037f490e014c705d93bec9fca0e1a524c3b1.tar.gz craftbukkit-1ea0037f490e014c705d93bec9fca0e1a524c3b1.tar.lz craftbukkit-1ea0037f490e014c705d93bec9fca0e1a524c3b1.tar.xz craftbukkit-1ea0037f490e014c705d93bec9fca0e1a524c3b1.zip |
Fixed maps crashing/disconnecting the client under certain circumstances.
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemWorldMap.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemWorldMap.java | 1 |
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 652b62ac..848e6670 100644 --- a/src/main/java/net/minecraft/server/ItemWorldMap.java +++ b/src/main/java/net/minecraft/server/ItemWorldMap.java @@ -112,6 +112,7 @@ public class ItemWorldMap extends ItemWorldMapBase { if (!flag1) { --k4; + if (k4 <= 0) break; // CraftBukkit j5 = chunk.getTypeId(l4 + k3, k4 - 1, j4 + l3); } } while (k4 > 0 && !flag1); |