forked from 2009Scape/Server
operating enchanted jewellry now cancels any running pulses in the player's pulsemanager
This commit is contained in:
parent
4a5bfb5d32
commit
51bc9f54e6
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ class EnchantedJewelleryListener : InteractionListener() {
|
|||
override fun defineListeners() {
|
||||
|
||||
on(IDs,ITEM,"rub","operate"){player,node ->
|
||||
player.pulseManager.current.stop()
|
||||
val item = node.asItem()
|
||||
val jewellery = EnchantedJewellery.forItem(item)
|
||||
if (jewellery.isLast(jewellery.getItemIndex(item))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue