From b2e8e27d70b27b257b05d8796361b1ae4f4655b7 Mon Sep 17 00:00:00 2001 From: thispixel Date: Thu, 12 Feb 2015 18:24:56 +0000 Subject: [PATCH] Runecrafting login listener fix. --- data/plugins/skill/runecraft/tiara.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/plugins/skill/runecraft/tiara.rb b/data/plugins/skill/runecraft/tiara.rb index 2e3597db..8a77490d 100644 --- a/data/plugins/skill/runecraft/tiara.rb +++ b/data/plugins/skill/runecraft/tiara.rb @@ -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.