Merge pull request #88 from Sonicaii/master
NoFall: Condense isFlying method
This commit is contained in:
commit
b91ca3a5c9
|
@ -21,15 +21,7 @@ public final class NoFallModule extends Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isFlying() {
|
private boolean isFlying() {
|
||||||
if (this.elytraDisable.getValue()) {
|
return this.elytraDisable.getValue() && Minecraft.getMinecraft().player.isElytraFlying();
|
||||||
if (Minecraft.getMinecraft().player.isElytraFlying()) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener
|
||||||
|
|
Loading…
Reference in New Issue