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