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.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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user