v0.9.4: fixed lost backpack being hidden behind other items
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user