From d623f3ef7111fa7032294a8d07f825eb4986e7c3 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 30 Mar 2021 21:05:41 -0400 Subject: [PATCH] v0.9.3: fixed a visual error when dewcatchers drop dew onto items --- .../shatteredpixeldungeon/items/wands/WandOfRegrowth.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java index 8649894e8..e7d040d20 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java @@ -326,7 +326,11 @@ public class WandOfRegrowth extends Wand { for (int i = 0; i < nDrops && !candidates.isEmpty(); i++){ Integer c = Random.element(candidates); - Dungeon.level.drop(new Dewdrop(), c).sprite.drop(pos); + if (Dungeon.level.heaps.get(c) == null) { + Dungeon.level.drop(new Dewdrop(), c).sprite.drop(pos); + } else { + Dungeon.level.drop(new Dewdrop(), c).sprite.drop(c); + } candidates.remove(c); }