From da8bf6b1b3c8a3d0e428874de906fc4c2ff29f56 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 6 May 2019 14:07:46 -0700 Subject: [PATCH] fix a potential concurrency issue --- src/main/java/baritone/process/BuilderProcess.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/baritone/process/BuilderProcess.java b/src/main/java/baritone/process/BuilderProcess.java index 230edf0d..81f790b6 100644 --- a/src/main/java/baritone/process/BuilderProcess.java +++ b/src/main/java/baritone/process/BuilderProcess.java @@ -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) {