Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private void hookAirJump(CallbackInfo callbackInfo) {
@Unique
private boolean previousElytra = false;

@Inject(method = "updateFallFlying", at = @At("TAIL"))
@Inject(method = "aiStep", at = @At("TAIL"))
public void recastIfLanded(CallbackInfo callbackInfo) {
if ((Object) this != Minecraft.getInstance().player) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package net.ccbluex.liquidbounce.features.module.modules.movement

import net.ccbluex.liquidbounce.features.module.ClientModule
import net.ccbluex.liquidbounce.features.module.ModuleCategories
import net.ccbluex.liquidbounce.features.module.modules.movement.ModuleElytraRecast.shouldRecast
import net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket
import net.minecraft.world.effect.MobEffects
import net.minecraft.world.entity.EquipmentSlot
Expand All @@ -40,7 +39,7 @@ object ModuleElytraRecast : ClientModule("ElytraRecast", ModuleCategories.MOVEME
val itemStack = player.getItemBySlot(EquipmentSlot.CHEST)

return !player.abilities.flying && !player.isPassenger && !player.onClimbable() &&
!player.isInWater && !player.hasEffect(MobEffects.LEVITATION) &&
!player.isInWater && !player.hasEffect(MobEffects.LEVITATION) && !player.isFallFlying
itemStack.`is`(Items.ELYTRA) && !itemStack.nextDamageWillBreak() && mc.options.keyJump.isDown
}

Expand Down