mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 15:26:51 +00:00
Synchronize sections test?
This commit is contained in:
1 parent
d06657e2ff
commit
15c65ad4e1
2 files changed
+4
-8
No files matched your search
@@ -32,7 +32,6 @@ import static com.volmit.iris.engine.data.mca.LoadFlags.*;
|
||||
|
||||
public class Chunk {
|
||||
|
||||
public transient int writes = 0;
|
||||
public static final int DEFAULT_DATA_VERSION = 1628;
|
||||
|
||||
private boolean partial;
|
||||
@@ -325,10 +324,12 @@ public class Chunk {
|
||||
Section section = sections.get(sectionIndex);
|
||||
if (section == null) {
|
||||
section = Section.newSection();
|
||||
sections.set(sectionIndex, section);
|
||||
synchronized (sections)
|
||||
{
|
||||
sections.set(sectionIndex, section);
|
||||
}
|
||||
}
|
||||
section.setBlockStateAt(blockX, blockY, blockZ, state, cleanup);
|
||||
writes++;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user