v3.0.0: fixed a crash caused by dropping aqua brews down chasms
This commit is contained in:
@@ -40,7 +40,7 @@ public class AquaBrew extends Brew {
|
||||
geyser.pos = cell;
|
||||
geyser.source = this;
|
||||
|
||||
int userPos = curUser.pos;
|
||||
int userPos = curUser == null ? cell : curUser.pos;
|
||||
if (userPos != cell){
|
||||
Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET);
|
||||
if (aim.path.size() > aim.dist+1) {
|
||||
|
||||
Reference in New Issue
Block a user