Update core.luau

This commit is contained in:
2025-10-03 13:47:16 -04:00
parent caa473876a
commit defeb55503
+4 -3
View File
@@ -1,7 +1,7 @@
-- handles core detection logic for workspace in models -- handles core detection logic for workspace in models
local roblox = require("@lune/roblox") local roblox = require("@lune/roblox")
local stdio = require("@lune/stdio") local stdio = require("@lune/stdio")
local types = require("./types") local types = require("./types")
local compression = require("./compression") local compression = require("./compression")
export type Core = { export type Core = {
@@ -35,7 +35,7 @@ local core = {} :: Core
@return True if a Workspace instance is found, false otherwise. @return True if a Workspace instance is found, false otherwise.
]]-- ]]--
function core.scanForWorkspace(model: types.model, printInstanceNames: boolean): boolean function core.scanForWorkspace(model: types.model, printInstanceNames: boolean): boolean
assert(typeof(model) == "table", "Expected model to be of type 'table''") assert(typeof(model) == "table", "Expected model to be of type 'table'")
assert(typeof(printInstanceNames) == "boolean", "Expected printInstanceNames to be of type 'boolean'") assert(typeof(printInstanceNames) == "boolean", "Expected printInstanceNames to be of type 'boolean'")
for _, child in pairs(model) do for _, child in pairs(model) do
if printInstanceNames then if printInstanceNames then
@@ -93,6 +93,7 @@ end
printInstanceNames = true, printInstanceNames = true,
zlibDecompressFiles = true, zlibDecompressFiles = true,
zlibDecompressFilesRecursive = false zlibDecompressFilesRecursive = false
-- other options...
} }
if core.fileContainsWorkspace(fileContents, opts) then if core.fileContainsWorkspace(fileContents, opts) then
print("The file contains a Workspace instance.") print("The file contains a Workspace instance.")