mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 16:49:12 +00:00
Runecrafting login listener fix.
This commit is contained in:
@@ -53,16 +53,15 @@ end
|
|||||||
# Sets the correct config upon login, if the player is wearing a tiara.
|
# Sets the correct config upon login, if the player is wearing a tiara.
|
||||||
on :login do |player|
|
on :login do |player|
|
||||||
hat = player.equipment.get(EquipmentConstants::HAT)
|
hat = player.equipment.get(EquipmentConstants::HAT)
|
||||||
return if hat.nil?
|
next if hat.nil?
|
||||||
|
|
||||||
tiara = TIARAS_BY_ID[hat]
|
tiara = TIARAS_BY_ID[hat]
|
||||||
unless tiara.nil?
|
unless tiara.nil?
|
||||||
tiara.send_config
|
tiara.send_config
|
||||||
return
|
else
|
||||||
end
|
|
||||||
|
|
||||||
send_empty_config(player)
|
send_empty_config(player)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Intercepts the SecondObjectAction message to support left-click access to the altar when wielding the correct tiara.
|
# Intercepts the SecondObjectAction message to support left-click access to the altar when wielding the correct tiara.
|
||||||
on :message, :second_object_action do |ctx, player, message|
|
on :message, :second_object_action do |ctx, player, message|
|
||||||
|
|||||||
Reference in New Issue
Block a user