fix a potential concurrency issue

This commit is contained in:
Leijurv 2019-05-06 14:07:46 -07:00
parent 1501d721e7
commit da8bf6b1b3
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -301,6 +301,7 @@ public class BuilderProcess extends BaritoneProcessHelper implements IBuilderPro
if (realSchematic == null) {
realSchematic = schematic;
}
ISchematic realSchematic = this.realSchematic; // wrap this properly, dont just have the inner class refer to the builderprocess.this
schematic = new ISchematic() {
@Override
public IBlockState desiredState(int x, int y, int z) {