:))) I don't know how correct this is, I have no experience, but if you remove the expression "not" from here, then there is no more delay, and it seems like the tower is working...
script.on_event(defines.events.on_tick, function(event)
-- Perform the check every so many ticks
if event.tick % 120 == 0 then
if ̶n̶o̶t̶ isPowerChecksDisabled then