Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit bad4885

Browse files
committed
fix #350
1 parent 571c8c8 commit bad4885

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/BUTTON.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ end
715715
function BUTTON:UpdateItemCooldown()
716716
if self.item and self.isShown then
717717
local start, duration, enable, modrate
718-
if NeuronItemCache[self.item] then
719-
start, duration, enable, modrate = GetItemCooldown(NeuronItemCache[self.item])
718+
if NeuronItemCache[self.item:lower()] then
719+
start, duration, enable, modrate = GetItemCooldown(NeuronItemCache[self.item:lower()])
720720
else
721721
local itemID = GetItemInfoInstant(self.item)
722722
start, duration, enable, modrate = GetItemCooldown(itemID)

0 commit comments

Comments
 (0)