v2.5.0: fixed self-throwing aqua brew always going up-left

This commit is contained in:
Evan Debenham
2024-06-30 13:41:52 -04:00
parent 59727ea864
commit 0d9746b598
@@ -41,9 +41,11 @@ public class AquaBrew extends Brew {
geyser.source = this; geyser.source = this;
int userPos = curUser.pos; int userPos = curUser.pos;
Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET); if (userPos != cell){
if (aim.path.size() > aim.dist+1) { Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET);
geyser.centerKnockBackDirection = aim.path.get(aim.dist + 1); if (aim.path.size() > aim.dist+1) {
geyser.centerKnockBackDirection = aim.path.get(aim.dist + 1);
}
} }
geyser.activate(); geyser.activate();
} }