Add error checking

This commit is contained in:
James Seibel
2021-04-02 22:56:13 -05:00
parent 222c0de7f1
commit e1216966a3
@@ -32,6 +32,9 @@ public class LodChunkGenWorker implements IWorker
LodDimension newLodDimension)
{
serverWorld = LodUtils.getServerWorldFromDimension(newLodDimension.dimension);
if (serverWorld == null)
throw new IllegalArgumentException("LodChunkGenWorker must have a non-null ServerWorld");
pos = newPos;
lodDim = newLodDimension;
lodBuilder = newLodBuilder;