v0.9.3: fixed a visual error when dewcatchers drop dew onto items
This commit is contained in:
parent
d25564e9d3
commit
d623f3ef71
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user