v0.3.1: fixed a bug with unequipping quickslotted items with a full inventory
This commit is contained in:
parent
bb4e915132
commit
75e49e7a3c
|
@ -100,6 +100,8 @@ public abstract class EquipableItem extends Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (collect && !collect( hero.belongings.backpack )) {
|
if (collect && !collect( hero.belongings.backpack )) {
|
||||||
|
onDetach();
|
||||||
|
Dungeon.quickslot.clearItem(this);
|
||||||
Dungeon.level.drop( this, hero.pos );
|
Dungeon.level.drop( this, hero.pos );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user