fix a potential concurrency issue
This commit is contained in:
parent
1501d721e7
commit
da8bf6b1b3
@ -301,6 +301,7 @@ public class BuilderProcess extends BaritoneProcessHelper implements IBuilderPro
|
|||||||
if (realSchematic == null) {
|
if (realSchematic == null) {
|
||||||
realSchematic = schematic;
|
realSchematic = schematic;
|
||||||
}
|
}
|
||||||
|
ISchematic realSchematic = this.realSchematic; // wrap this properly, dont just have the inner class refer to the builderprocess.this
|
||||||
schematic = new ISchematic() {
|
schematic = new ISchematic() {
|
||||||
@Override
|
@Override
|
||||||
public IBlockState desiredState(int x, int y, int z) {
|
public IBlockState desiredState(int x, int y, int z) {
|
||||||
|
Loading…
Reference in New Issue
Block a user