Merge branch 'glory' into 'master'
fix jewelry for replacing wrong items. See merge request 2009scape/2009scape!303
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user