From a5f85b6f1af546c6253ffda782a1bbff0b528501 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 22 Jul 2011 00:06:08 -0400 Subject: [PATCH] Fixed map render distance when view-distance < 7. --- 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 1995346d74..be54e2d7c9 100644 --- a/src/main/java/net/minecraft/server/ItemWorldMap.java +++ b/src/main/java/net/minecraft/server/ItemWorldMap.java @@ -62,6 +62,7 @@ public class ItemWorldMap extends ItemWorldMapBase { byte b2 = 0; int[] aint = new int[256]; Chunk chunk = world.getChunkAtWorldCoords(i3, j3); + if (chunk.isEmpty()) continue; // CraftBukkit int k3 = i3 & 15; int l3 = j3 & 15; int i4 = 0;