prevent fileSaving errors when given a null region

This commit is contained in:
James Seibel
2021-02-03 09:51:32 -06:00
parent 9d635f4fea
commit 58a37aa08b
@@ -209,7 +209,7 @@ public class LodFileHandler
private void saveRegionToDisk(LodRegion region)
{
if (!readyToReadAndWrite())
if (!readyToReadAndWrite() || region == null)
return;
// convert chunk coordinates to region