api: rename to hooksecurefunc

This commit is contained in:
shagu
2017-03-01 19:48:48 +01:00
parent 4e98f8096f
commit 6402e29b1b
5 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -34,18 +34,18 @@ pfUI:RegisterModule("actionbar", function ()
end
end
Hook("ShowBonusActionBar", function()
hooksecurefunc("ShowBonusActionBar", function()
if pfActionBar then pfActionBar:Hide() end
if pfBonusBar then pfBonusBar:Show() end
end)
Hook("HideBonusActionBar", function()
hooksecurefunc("HideBonusActionBar", function()
if pfActionBar then pfActionBar:Show() end
if pfBonusBar then pfBonusBar:Hide() end
end)
if C.bars.glowrange == "1" then
Hook("ActionButton_OnUpdate", function(elapsed)
hooksecurefunc("ActionButton_OnUpdate", function(elapsed)
-- Handle range indicator
if ( this.rangeTimer ) then
this.rangeTimer = this.rangeTimer - elapsed