From 8d05ca1cb05a7529b2f7b5f0236569a243295d1c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 13 Feb 2025 12:45:19 -0500 Subject: [PATCH] v3.0.0: fixed a crash caused by dropping aqua brews down chasms --- .../shatteredpixeldungeon/items/potions/brews/AquaBrew.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java index e77aa4fba..35c897008 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java @@ -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) {