From 1ea0037f490e014c705d93bec9fca0e1a524c3b1 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sun, 29 Jan 2012 01:15:55 -0500 Subject: [PATCH] Fixed maps crashing/disconnecting the client under certain circumstances. --- src/main/java/net/minecraft/server/ItemWorldMap.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/ItemWorldMap.java b/src/main/java/net/minecraft/server/ItemWorldMap.java index 652b62ac52..848e6670eb 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);