This commit is contained in:
Leijurv 2018-11-12 16:39:58 -08:00
parent 83f14b10bb
commit e81b6d4d96
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
3 changed files with 7 additions and 10 deletions

View File

@ -55,8 +55,8 @@ public class WorldProvider implements IWorldProvider, Helper {
* @param dimension The ID of the world's dimension
*/
public final void initWorld(int dimension) {
// Fight me @leijurv
File directory, readme;
File directory;
File readme;
IntegratedServer integratedServer = mc.getIntegratedServer();

View File

@ -79,10 +79,7 @@ public final class FollowProcess extends BaritoneProcessHelper implements IFollo
if (entity.equals(player())) {
return false;
}
if (!world().loadedEntityList.contains(entity) && !world().playerEntities.contains(entity)) {
return false;
}
return true;
return world().loadedEntityList.contains(entity) || world().playerEntities.contains(entity);
}
private void scanWorld() {

View File

@ -37,15 +37,15 @@ import java.util.Map;
*/
public final class InputOverrideHandler extends Behavior implements Helper {
public InputOverrideHandler(Baritone baritone) {
super(baritone);
}
/**
* Maps inputs to whether or not we are forcing their state down.
*/
private final Map<Input, Boolean> inputForceStateMap = new HashMap<>();
public InputOverrideHandler(Baritone baritone) {
super(baritone);
}
/**
* Returns whether or not we are forcing down the specified {@link KeyBinding}.
*