mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed enchanted lyre teleport bypassing teleblock
This commit is contained in:
parent
0ca2b8d99c
commit
cf8b56c0f4
1 changed files with 3 additions and 3 deletions
|
|
@ -171,12 +171,12 @@ class TFTInteractionListeners : InteractionListener {
|
|||
sendMessage(player,"You lack the knowledge to play this.")
|
||||
} else if(LYRE_IDs.isLast(lyre.id)){
|
||||
sendMessage(player,"Your lyre is out of charges!")
|
||||
} else {
|
||||
if(removeItem(player,lyre.asItem())){
|
||||
} else if (player.isTeleBlocked) {
|
||||
sendMessage(player, "A magical force has stopped you from teleporting.")
|
||||
} else if(removeItem(player,lyre.asItem())){
|
||||
addItem(player,LYRE_IDs.getNext(lyre.id))
|
||||
Pulser.submit(TelePulse(player))
|
||||
}
|
||||
}
|
||||
return@on true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue