SpoutDev/Spout — pull request #1879 by mikeprimm (2012-05-16 03:18:35+00:00)
Title: SPOUT-47: Correct chunk coordinate processing for unloadChunk and saveChunk

The World interface shows the definition of the getChunk(), unloadChunk() and saveChunk() APIs as using X, Y, and Z as 'chunk coordinates' (corresponding to 1/16 the equivalent block coordinates). The implementation of unloadChunk and saveChunk both use the coordinates incorrectly: first, using them as block coordinates to get the region, and then using them as relative chunk coordinates within the region. This typically causes Array index out of bounds exceptions.

Signed-off-by: Mike Primm