v0.2.4d: further fixed issues with quickslot and dropping bags

This commit is contained in:
Evan Debenham 2015-03-21 20:56:53 -04:00
parent 6720d530f4
commit 5d837c3297
2 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public class Bag extends Item implements Iterable<Item> {
this.owner = null;
for (Item item : items)
Dungeon.quickslot.clearItem(item);
updateQuickslot();
}
@Override

View File

@ -17,6 +17,7 @@
*/
package com.shatteredpixel.shatteredpixeldungeon.items.bags;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
@ -51,6 +52,7 @@ public class WandHolster extends Bag {
@Override
public void onDetach( ) {
super.onDetach();
for (Item item : items) {
((Wand)item).stopCharging();
}