MrSirSquishy / SquishyAPI

Other
20 stars 3 forks source link

"doidle" cannot be disabled #1

Closed 0xFE0F closed 11 months ago

0xFE0F commented 1 year ago

On line 562 code is used to fallback to the default value (true) if no value is specified for "doidle", due to the way lua works though, false is (unsurprisingly) a "falsey" value (like nil)

Due to this, doidle is always true, even if it's explicitly set to false a simple fix to this would be to replace like 562 to

if doidle == nil then doidle = true end

(Sorry if this issue is a bit bad, I'm new to posting issues!)