From cee6de084f4ab0dd2ec324f9ec5c5d15bb76b55b Mon Sep 17 00:00:00 2001 From: ceikry Date: Wed, 11 Aug 2021 15:48:10 -0500 Subject: [PATCH] Fixed potential exploit with the bonegrinder --- .../zone/phasmatys/bonegrinder/BoneGrinderListener.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Server/src/main/kotlin/rs09/game/content/zone/phasmatys/bonegrinder/BoneGrinderListener.kt b/Server/src/main/kotlin/rs09/game/content/zone/phasmatys/bonegrinder/BoneGrinderListener.kt index d4cdbe233..da53afcb1 100644 --- a/Server/src/main/kotlin/rs09/game/content/zone/phasmatys/bonegrinder/BoneGrinderListener.kt +++ b/Server/src/main/kotlin/rs09/game/content/zone/phasmatys/bonegrinder/BoneGrinderListener.kt @@ -216,14 +216,12 @@ class BoneGrinderListener : InteractionListener() { val bone = Bones.values()[player.getAttribute(LOADED_BONE_KEY,-1)] + player.lock() Pulser.submit(object : Pulse(){ var stage = 0 override fun pulse(): Boolean { when(stage++){ - 0 -> { - player.lock() - player.animator.animate(SCOOP_ANIM) - } + 0 -> player.animator.animate(SCOOP_ANIM) SCOOP_ANIM.duration -> { player.unlock() if(player.inventory.remove(Item(Items.EMPTY_POT_1931))){