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

Dieser Commit ist enthalten in:
Albert Pham 2013-06-02 12:14:56 -07:00
Ursprung 321e2246fc
Commit 10c43a9c9f

Datei anzeigen

@ -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;