context specific blockstateinterface lookups. also toxic

This commit is contained in:
Leijurv
2018-11-11 12:35:04 -08:00
parent a83074e773
commit 45e4239b26
22 changed files with 175 additions and 151 deletions

View File

@@ -82,6 +82,8 @@ public enum Baritone implements IBaritone {
private PathingControlManager pathingControlManager;
private WorldProvider worldProvider;
private static ThreadPoolExecutor threadPool = new ThreadPoolExecutor(4, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<>());
Baritone() {
@@ -115,6 +117,8 @@ public enum Baritone implements IBaritone {
getToBlockProcess = new GetToBlockProcess(this);
}
this.worldProvider = new WorldProvider();
if (BaritoneAutoTest.ENABLE_AUTO_TEST) {
registerEventListener(BaritoneAutoTest.INSTANCE);
}
@@ -194,7 +198,7 @@ public enum Baritone implements IBaritone {
@Override
public WorldProvider getWorldProvider() {
return WorldProvider.INSTANCE;
return worldProvider;
}
@Override