From 97a6534ee60f70cdc7395b8a7aa5c57ff1200090 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 21 Jul 2011 13:32:16 -0400 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 c098aeb67b..1995346d74 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);