From 05e3b9406f121a1b6ce3ae8459c990f989a25901 Mon Sep 17 00:00:00 2001 From: unittensor Date: Sat, 6 Apr 2024 15:14:25 -0400 Subject: [PATCH] fix lighting objects using the incorrect function and sound objects now hide --- src/server/main/EditorEntities.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/server/main/EditorEntities.lua b/src/server/main/EditorEntities.lua index 99c7db1..33810ee 100644 --- a/src/server/main/EditorEntities.lua +++ b/src/server/main/EditorEntities.lua @@ -24,14 +24,14 @@ local function HidePart(Part: BasePart, enabled: boolean) end local function HideIndicatorPart(Part: BasePart, enabled: boolean) - --local billboard_light_indicator = Part:FindFirstChildOfClass("BillboardGui") - --if billboard_light_indicator then - -- if enabled then - -- billboard_light_indicator:Destroy() - -- end - --else - -- warn("Indicator source had no image indicator", Part:GetFullName()) - --end + local billboard_light_indicator = Part:FindFirstChildOfClass("BillboardGui") + if billboard_light_indicator then + if enabled then + billboard_light_indicator:Destroy() + end + else + warn("Indicator source had no image indicator", Part:GetFullName()) + end HidePart(Part, enabled) end @@ -57,7 +57,7 @@ local function HideLadderContact(Part: BasePart, enabled: boolean) end local EditorEntities = { - ["LightSource"] = HideIndicatorPart, + ["LightSource"] = HidePart, ["SoundSource"] = HideIndicatorPart, ["PulleyRopeContact"] = HidePart, ["BarrierCollision"] = HideBarrierCollision,