@adiholick/nvstudio-mcp 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,8 @@ return function(targetInstance, data, ctx, targetPath)
48
48
  if targetInstance and targetInstance ~= game then
49
49
  local descendants = {}
50
50
  pcall(function() descendants = targetInstance:GetDescendants() end)
51
- for _, desc in ipairs(descendants) do
51
+ for i, desc in ipairs(descendants) do
52
+ if i % 300 == 0 then task.wait() end
52
53
  if matchCount >= MAX_MATCHES then break end
53
54
  if desc:IsA("LuaSourceContainer") then
54
55
  if searchInScript(desc) then
@@ -60,7 +61,8 @@ return function(targetInstance, data, ctx, targetPath)
60
61
  for _, service in ipairs(searchableServices) do
61
62
  local descendants = {}
62
63
  pcall(function() descendants = service:GetDescendants() end)
63
- for _, desc in ipairs(descendants) do
64
+ for i, desc in ipairs(descendants) do
65
+ if i % 300 == 0 then task.wait() end
64
66
  if matchCount >= MAX_MATCHES then break end
65
67
  if desc:IsA("LuaSourceContainer") then
66
68
  if searchInScript(desc) then