v0.2.4d: further fixed issues with quickslot and dropping bags
This commit is contained in:
parent
6720d530f4
commit
5d837c3297
|
@ -85,6 +85,7 @@ public class Bag extends Item implements Iterable<Item> {
|
||||||
this.owner = null;
|
this.owner = null;
|
||||||
for (Item item : items)
|
for (Item item : items)
|
||||||
Dungeon.quickslot.clearItem(item);
|
Dungeon.quickslot.clearItem(item);
|
||||||
|
updateQuickslot();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.items.bags;
|
package com.shatteredpixel.shatteredpixeldungeon.items.bags;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
|
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||||
|
@ -51,6 +52,7 @@ public class WandHolster extends Bag {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDetach( ) {
|
public void onDetach( ) {
|
||||||
|
super.onDetach();
|
||||||
for (Item item : items) {
|
for (Item item : items) {
|
||||||
((Wand)item).stopCharging();
|
((Wand)item).stopCharging();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user