Sync gen of engines

This commit is contained in:
Daniel Mills 2021-01-01 19:07:29 -05:00
parent a921845ae3
commit 70fef94d15

View File

@ -242,11 +242,7 @@ public class IrisEngineCompound implements EngineCompound {
}
cbiome.set(engine.getTarget().isInverted() ? cbiome.get().invertY() : cbiome.get());
e.queue(() -> {
engine.generate(x, z, cblock.get(), cpblock.get(), cbiome.get());
synchronized (insert)
{
insert[index.get()] = () -> {
blocks.insert(0, doffset, 0, cblock.get());
if(structures)
@ -255,19 +251,8 @@ public class IrisEngineCompound implements EngineCompound {
}
biomes.insert(0, doffset, 0, cbiome.get());
};
}
});
offset += height;
}
e.complete();
for(i = 0; i < insert.length; i++)
{
insert[i].run();
}
}
wallClock.put(p.getMilliseconds());