mirror of
https://github.com/cabaletta/baritone
synced 2024-12-18 21:24:53 +00:00
fought
This commit is contained in:
parent
83f14b10bb
commit
e81b6d4d96
@ -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();
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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}.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user