This commit is contained in:
Daniel Mills 2021-07-22 20:57:10 -04:00
parent 15c65ad4e1
commit c72511da6a
2 changed files with 2 additions and 5 deletions

View File

@ -324,10 +324,7 @@ 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);
} }

View File

@ -536,7 +536,7 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
} }
@Override @Override
public void directWriteChunk(IrisWorld w, int x, int z, NBTWorld writer) { public synchronized void directWriteChunk(IrisWorld w, int x, int z, NBTWorld writer) {
try try
{int ox = x << 4; {int ox = x << 4;
int oz = z << 4; int oz = z << 4;