v0.9.4: fixed lost backpack being hidden behind other items

This commit is contained in:
Evan Debenham
2021-08-12 19:51:39 -04:00
parent 50a1ea0c62
commit 93a3d6f365
@@ -156,7 +156,8 @@ public class Heap implements Bundlable {
} }
if (item.dropsDownHeap && type != Type.FOR_SALE) { //lost backpack must always be on top of a heap
if ((item.dropsDownHeap && type != Type.FOR_SALE) || peek() instanceof LostBackpack) {
items.add( item ); items.add( item );
} else { } else {
items.addFirst( item ); items.addFirst( item );