mirror of https://github.com/cabaletta/baritone
unused
This commit is contained in:
parent
535eccfc24
commit
f35e55ef66
|
@ -184,15 +184,6 @@ public class ElytraCommand extends Command {
|
||||||
logDirect(gatekeep);
|
logDirect(gatekeep);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean detect2b2tPlayers() {
|
|
||||||
// if any cached worlds are 2b2t worlds
|
|
||||||
try (Stream<Path> stream = Files.list(((Baritone) baritone).getDirectory())) {
|
|
||||||
return stream.anyMatch(path -> path.getFileName().toString().toLowerCase().contains("2b2t"));
|
|
||||||
} catch (IOException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean detectOn2b2t() {
|
private boolean detectOn2b2t() {
|
||||||
ServerData data = ctx.minecraft().getCurrentServerData();
|
ServerData data = ctx.minecraft().getCurrentServerData();
|
||||||
return data != null && data.serverIP.toLowerCase().contains("2b2t");
|
return data != null && data.serverIP.toLowerCase().contains("2b2t");
|
||||||
|
|
Loading…
Reference in New Issue