- solves lack of icon update

This commit is contained in:
SandPoot
2023-08-26 22:47:05 -03:00
parent 8194b976e3
commit b8da9de8d5
+2 -2
View File
@@ -70,7 +70,7 @@
if(!(trigger_flags & TRIGGER_SECONDARY_ACTION) && !ready)
ready = TRUE
button_icon_state = "activate-ready"
UpdateButtons()
UpdateButtonIcon()
addtimer(CALLBACK(src, PROC_REF(reset_ready)), 3 SECONDS)
return
var/obj/item/mod/control/mod = target
@@ -81,7 +81,7 @@
/datum/action/item_action/mod/activate/proc/reset_ready()
ready = FALSE
button_icon_state = initial(button_icon_state)
UpdateButtons()
UpdateButtonIcon()
/datum/action/item_action/mod/activate/ai
ai_action = TRUE