v3.0.0: fixed a crash caused by dropping aqua brews down chasms

This commit is contained in:
Evan Debenham
2025-02-13 12:45:19 -05:00
parent 588c27788f
commit 8d05ca1cb0

View File

@@ -40,7 +40,7 @@ public class AquaBrew extends Brew {
geyser.pos = cell; geyser.pos = cell;
geyser.source = this; geyser.source = this;
int userPos = curUser.pos; int userPos = curUser == null ? cell : curUser.pos;
if (userPos != cell){ if (userPos != cell){
Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET); Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET);
if (aim.path.size() > aim.dist+1) { if (aim.path.size() > aim.dist+1) {