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;
int userPos = curUser.pos;
Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET);
if (aim.path.size() > aim.dist+1) {
geyser.centerKnockBackDirection = aim.path.get(aim.dist + 1);
if (userPos != cell){
Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET);
if (aim.path.size() > aim.dist+1) {
geyser.centerKnockBackDirection = aim.path.get(aim.dist + 1);
}
}
geyser.activate();
}