fix jewelry for replacing wrong items.

This commit is contained in:
vk 2021-10-14 21:04:39 -07:00
parent e7515d404b
commit 8bb0de73fe

View file

@ -10,7 +10,7 @@ class EnchantedJewelleryDialogueFile(val jewellery: EnchantedJewellery, val item
when(stage){ when(stage){
START_DIALOGUE -> interpreter!!.sendOptions("Where would you like to go?", *jewellery.options).also { stage++ } START_DIALOGUE -> interpreter!!.sendOptions("Where would you like to go?", *jewellery.options).also { stage++ }
1 -> { 1 -> {
jewellery.use(player, item, buttonID - 1, player!!.equipment.containsItem(item)) jewellery.use(player, item, buttonID - 1,item.slot < player!!.equipment.capacity() && player!!.equipment[item.slot] == item)
end() end()
} }
} }