mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 21:40:27 -07:00
Fixed potential exploit with the bonegrinder
This commit is contained in:
parent
5262e2f855
commit
cee6de084f
1 changed files with 2 additions and 4 deletions
|
|
@ -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))){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue