mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Synchronize sections test?
This commit is contained in:
parent
d06657e2ff
commit
15c65ad4e1
@ -32,7 +32,6 @@ import static com.volmit.iris.engine.data.mca.LoadFlags.*;
|
|||||||
|
|
||||||
public class Chunk {
|
public class Chunk {
|
||||||
|
|
||||||
public transient int writes = 0;
|
|
||||||
public static final int DEFAULT_DATA_VERSION = 1628;
|
public static final int DEFAULT_DATA_VERSION = 1628;
|
||||||
|
|
||||||
private boolean partial;
|
private boolean partial;
|
||||||
@ -325,10 +324,12 @@ public class Chunk {
|
|||||||
Section section = sections.get(sectionIndex);
|
Section section = sections.get(sectionIndex);
|
||||||
if (section == null) {
|
if (section == null) {
|
||||||
section = Section.newSection();
|
section = Section.newSection();
|
||||||
|
synchronized (sections)
|
||||||
|
{
|
||||||
sections.set(sectionIndex, section);
|
sections.set(sectionIndex, section);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
section.setBlockStateAt(blockX, blockY, blockZ, state, cleanup);
|
section.setBlockStateAt(blockX, blockY, blockZ, state, cleanup);
|
||||||
writes++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -547,11 +547,6 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
|||||||
.injector((xx, yy, zz, biomeBase) -> chunk.setBiomeAt(ox + xx, yy, oz + zz,
|
.injector((xx, yy, zz, biomeBase) -> chunk.setBiomeAt(ox + xx, yy, oz + zz,
|
||||||
INMS.get().getTrueBiomeBaseId(biomeBase)))
|
INMS.get().getTrueBiomeBaseId(biomeBase)))
|
||||||
.build()).run();
|
.build()).run();
|
||||||
|
|
||||||
if(chunk.writes == 0)
|
|
||||||
{
|
|
||||||
Iris.error("Chunk " + x + " " + z + " has 0 writes?");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
catch(Throwable e)
|
catch(Throwable e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user