update main.lua
Smart switches a bit smarter