Always enforce sinceFirework

This commit is contained in:
Brady
2023-06-19 14:10:41 -05:00
parent 6741dff12b
commit 8d3b0c8f07

View File

@@ -429,11 +429,10 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
ctx.player().motionZ
).length();
if (forceUseFirework || (!firework
&& sinceFirework > 10
if (sinceFirework > 10 && (forceUseFirework || (!firework
&& useOnDescend
&& (ctx.player().posY < goingTo.y - 5 || start.distanceTo(new Vec3d(goingTo.x + 0.5, ctx.player().posY, goingTo.z + 0.5)) > 5) // UGH!!!!!!!
&& currentSpeed < Baritone.settings().elytraFireworkSpeed.value)
&& currentSpeed < Baritone.settings().elytraFireworkSpeed.value))
) {
// Prioritize boosting fireworks over regular ones
// TODO: Take the minimum boost time into account?