From a2fb260b6acc88b7a24c554d0ed9c7f74f3acfc8 Mon Sep 17 00:00:00 2001 From: mkargus <14226603+mkargus@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:05:04 -0400 Subject: [PATCH] Removed remaining ipairs --- src/Components/PluginApp.lua | 2 +- src/Util/Settings.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/PluginApp.lua b/src/Components/PluginApp.lua index d0d83ea..b108ede 100644 --- a/src/Components/PluginApp.lua +++ b/src/Components/PluginApp.lua @@ -24,7 +24,7 @@ local Tooltip = require(Components.Tooltip) local function GetInvisibleParts() local ignoreList = {} - for _, descendant in ipairs(workspace:GetDescendants()) do + for _, descendant in workspace:GetDescendants() do if descendant:IsA('BasePart') and descendant.Transparency == 1 then table.insert(ignoreList, descendant) end diff --git a/src/Util/Settings.lua b/src/Util/Settings.lua index 87feb29..7a23ec0 100644 --- a/src/Util/Settings.lua +++ b/src/Util/Settings.lua @@ -12,7 +12,7 @@ local Settings = {} Settings._values = DEFAULT_SETTINGS Settings._updateListeners = {} -for key, defaultValue in pairs(Settings._values) do +for key, defaultValue in Settings._values do local savedValue = plugin:GetSetting(key) if savedValue == nil then @@ -36,7 +36,7 @@ function Settings:Set(key: string, value: any) plugin:SetSetting(key, value) if self._updateListeners[key] then - for callback in pairs(self._updateListeners[key]) do + for callback in self._updateListeners[key] do task.spawn(callback, value) end end