From 0f482a64abe75ff97342fbe26cedaaa1ef1c3f0e Mon Sep 17 00:00:00 2001 From: Spigot Date: Thu, 28 Mar 2013 22:15:38 -0700 Subject: [PATCH] Fix lightened nibble array getChunkSnapshot on extended block IDs Fix out-of-bounds error in chunks with extended (4096) block IDs: 13:34:12 [SEVERE] [dynmap] Exception while fetching chunks: java.lang.ArrayIndexOutOfBoundsException: 4096 at org.bukkit.craftbukkit.v1_4_R1.CraftChunk.getChunkSnapshot(CraftChunk.java:1 http://pastie.org/6368930 Thanks to mikeprimm for this fix. Original MCPC+ commit: MinecraftPortCentral/MCPC-Plus@790276739766cb1733cc0787aaeb88ae6a507608 By: Agaricus --- ...9-Implement-lightening-of-NibbleArrays-only-allocate-b.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CraftBukkit-Patches/0009-Implement-lightening-of-NibbleArrays-only-allocate-b.patch b/CraftBukkit-Patches/0009-Implement-lightening-of-NibbleArrays-only-allocate-b.patch index ecc9c9605d..36018811ae 100644 --- a/CraftBukkit-Patches/0009-Implement-lightening-of-NibbleArrays-only-allocate-b.patch +++ b/CraftBukkit-Patches/0009-Implement-lightening-of-NibbleArrays-only-allocate-b.patch @@ -327,7 +327,7 @@ index 79c3893..97b7b5b 100644 + if (tval != 0) { + tval = tval << 8; + for (int j = 0; j < 4096; j++) { -+ blockids[j << 1] |= tval; ++ blockids[j] |= tval; + } + } + } else {