v0.6.2b: fixed containers clearing quickslots when collected
This commit is contained in:
parent
13b13020ce
commit
9d63559e2d
|
@ -69,10 +69,15 @@ public class Bag extends Item implements Iterable<Item> {
|
||||||
|
|
||||||
for (Item item : container.items.toArray( new Item[0] )) {
|
for (Item item : container.items.toArray( new Item[0] )) {
|
||||||
if (grab( item )) {
|
if (grab( item )) {
|
||||||
|
int slot = Dungeon.quickslot.getSlot(item);
|
||||||
item.detachAll(container);
|
item.detachAll(container);
|
||||||
if (!item.collect( this ))
|
if (!item.collect(this)) {
|
||||||
item.collect(container);
|
item.collect(container);
|
||||||
}
|
}
|
||||||
|
if (slot != -1) {
|
||||||
|
Dungeon.quickslot.setSlot(slot, item);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (super.collect( container )) {
|
if (super.collect( container )) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user