mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix threading & other issues
This commit is contained in:
parent
0a591e748f
commit
6d117f824d
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user