Merge pull request #88 from Sonicaii/master

NoFall: Condense isFlying method
This commit is contained in:
noil 2021-10-28 19:20:47 -04:00 committed by GitHub
commit b91ca3a5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

@ -21,15 +21,7 @@ public final class NoFallModule extends Module {
}
private boolean isFlying() {
if (this.elytraDisable.getValue()) {
if (Minecraft.getMinecraft().player.isElytraFlying()) {
return true;
} else {
return false;
}
} else {
return false;
}
return this.elytraDisable.getValue() && Minecraft.getMinecraft().player.isElytraFlying();
}
@Listener