Made McRegionReader.getChunkInputStream() throw a DataException instead of returning a null when an ungenerated chunk is encountered.

This commit is contained in:
Albert Pham 2013-06-02 12:14:56 -07:00
parent 321e2246fc
commit 10c43a9c9f

View File

@ -133,7 +133,7 @@ public class McRegionReader {
// The chunk hasn't been generated
if (offset == 0) {
return null;
throw new DataException("The chunk at " + x + "," + z + " is not generated");
}
int sectorNumber = offset >> 8;