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

View File

@@ -155,8 +155,9 @@ public class Heap implements Bundlable {
items.remove( item );
}
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 );
} else {
items.addFirst( item );