mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 05:20:22 -07:00
fix jewelry for replacing wrong items.
This commit is contained in:
parent
e7515d404b
commit
8bb0de73fe
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ class EnchantedJewelleryDialogueFile(val jewellery: EnchantedJewellery, val item
|
|||
when(stage){
|
||||
START_DIALOGUE -> interpreter!!.sendOptions("Where would you like to go?", *jewellery.options).also { stage++ }
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue