many fixes

This commit is contained in:
Leijurv
2019-02-04 15:24:27 -08:00
parent a0c2935580
commit 2cbe77aa04
6 changed files with 113 additions and 13 deletions

View File

@@ -47,9 +47,13 @@ public final class GameEventHandler implements IEventBus, Helper {
@Override
public final void onTick(TickEvent event) {
try {
baritone.bsi = new BlockStateInterface(baritone.getPlayerContext(), true);
} catch (Exception ex) {}
if (event.getType() == TickEvent.Type.IN) {
try {
baritone.bsi = new BlockStateInterface(baritone.getPlayerContext(), true);
} catch (Exception ex) {}
} else {
baritone.bsi = null;
}
listeners.forEach(l -> l.onTick(event));
}