This commit is contained in:
Leijurv 2023-08-14 12:34:24 -07:00
parent 535eccfc24
commit f35e55ef66
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 0 additions and 9 deletions

View File

@ -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");