From 1faed412d43f9bc9cc379705f71a8c20dbdf09a6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 4 Sep 2016 04:49:59 -0400 Subject: [PATCH] v0.4.2: fixed an exploit involving dew drops and shops --- .../com/shatteredpixel/shatteredpixeldungeon/items/Heap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java index 52e3ee990..157668147 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java @@ -187,7 +187,7 @@ public class Heap implements Bundlable { } - if (item instanceof Dewdrop) { + if (item instanceof Dewdrop && type != Type.FOR_SALE) { items.add( item ); } else { items.addFirst( item );