v2.3.1: fixed cases where transmutation would not preserve quickslots

This commit is contained in:
Evan Debenham
2024-01-20 13:46:21 -05:00
committed by Evan Debenham
parent 8c318c9075
commit 241292cf4d

View File

@@ -122,7 +122,7 @@ public class ScrollOfTransmutation extends InventoryScroll {
item.detach(Dungeon.hero.belongings.backpack);
if (!result.collect()) {
Dungeon.level.drop(result, curUser.pos).sprite.drop();
} else if (Dungeon.hero.belongings.getSimilar(result) != null){
} else if (result.stackable && Dungeon.hero.belongings.getSimilar(result) != null){
result = Dungeon.hero.belongings.getSimilar(result);
}
}