This commit is contained in:
Daniel Mills 2020-10-19 10:04:06 -04:00
parent 57f60326f3
commit eac1247f36

View File

@ -69,7 +69,7 @@ public abstract class ParallelTerrainProvider extends DimensionalTerrainProvider
HeightMap height = new HeightMap(); HeightMap height = new HeightMap();
String key = "c" + x + "," + z; String key = "c" + x + "," + z;
BiomeMap biomeMap = new BiomeMap(); BiomeMap biomeMap = new BiomeMap();
int ii, jj; int ii;
onPreGenerate(random, x, z, terrain, height, biomeMap, map); onPreGenerate(random, x, z, terrain, height, biomeMap, map);
for(ii = 0; ii < 16; ii++) for(ii = 0; ii < 16; ii++)
@ -77,14 +77,14 @@ public abstract class ParallelTerrainProvider extends DimensionalTerrainProvider
int i = ii; int i = ii;
int wx = (x * 16) + i; int wx = (x * 16) + i;
for(jj = 0; jj < 16; jj++) getAccelerant().queue(key, () ->
{ {
int j = jj; for(int jj = 0; jj < 16; jj++)
int wz = (z * 16) + j;
AtomicSliver sliver = map.getSliver(i, j);
getAccelerant().queue(key, () ->
{ {
int j = jj;
int wz = (z * 16) + j;
AtomicSliver sliver = map.getSliver(i, j);
try try
{ {
onGenerateColumn(x, z, wx, wz, i, j, sliver, biomeMap); onGenerateColumn(x, z, wx, wz, i, j, sliver, biomeMap);
@ -94,8 +94,8 @@ public abstract class ParallelTerrainProvider extends DimensionalTerrainProvider
{ {
fail(e); fail(e);
} }
}); }
} });
} }
accelerant.waitFor(key); accelerant.waitFor(key);