mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
Fix threading & other issues
This commit is contained in:
@@ -72,7 +72,7 @@ public class HybridPregenMethod implements PregeneratorMethod {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !new File(world.getWorldFolder(), "region/r." + x + "." + z + ".mca").exists();
|
return new File(world.getWorldFolder(), "region/r." + x + "." + z + ".mca").exists();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ public class PaperAsyncPregenMethod implements PregeneratorMethod {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void generateChunk(int x, int z, PregenListener listener) {
|
public void generateChunk(int x, int z, PregenListener listener) {
|
||||||
if(future.size() > 32)
|
if(future.size() > 128)
|
||||||
{
|
{
|
||||||
waitForChunks();
|
waitForChunks();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user