core: some fixes

This commit is contained in:
2026-01-09 17:02:35 +02:00
parent 2a0dd51659
commit 4785795640
10 changed files with 166 additions and 96 deletions

View File

@@ -1,18 +1,19 @@
local RunService = game:GetService("RunService")
local IS_STUDIO = RunService:IsStudio()
local ENABLE_STUDIO_LOG = false
local module = {}
-- Prints only when running in Studio (avoids noisy live logs)
function module.StudioLog(...: any)
if not IS_STUDIO then
if not IS_STUDIO or not ENABLE_STUDIO_LOG then
return
end
print(...)
end
function module.StudioWarn(...: any)
if not IS_STUDIO then
if not IS_STUDIO or not ENABLE_STUDIO_LOG then
return
end
warn(...)