mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
Made McRegionReader.getChunkInputStream() throw a DataException instead of returning a null when an ungenerated chunk is encountered.
This commit is contained in:
parent
321e2246fc
commit
10c43a9c9f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user