From b798924f12e97df0d65e966aec345aef32dff821 Mon Sep 17 00:00:00 2001 From: Kevin Zheng Date: Sat, 22 Oct 2022 15:40:57 -0700 Subject: [PATCH] Disable shadow casting for bioluminescent plants (#11986) --- Content.Server/Botany/Components/PlantHolderComponent.cs | 2 ++ Content.Server/Botany/Systems/BotanySystem.Seed.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Content.Server/Botany/Components/PlantHolderComponent.cs b/Content.Server/Botany/Components/PlantHolderComponent.cs index 6f716e5f1c..bc95c41726 100644 --- a/Content.Server/Botany/Components/PlantHolderComponent.cs +++ b/Content.Server/Botany/Components/PlantHolderComponent.cs @@ -588,6 +588,8 @@ namespace Content.Server.Botany.Components var light = _entMan.EnsureComponent(Owner); light.Radius = Seed.BioluminescentRadius; light.Color = Seed.BioluminescentColor; + light.CastShadows = false; // this is expensive, and botanists make lots of plants + light.Dirty(); } else { diff --git a/Content.Server/Botany/Systems/BotanySystem.Seed.cs b/Content.Server/Botany/Systems/BotanySystem.Seed.cs index 7e6d7df2f3..0e5a1ad52c 100644 --- a/Content.Server/Botany/Systems/BotanySystem.Seed.cs +++ b/Content.Server/Botany/Systems/BotanySystem.Seed.cs @@ -167,6 +167,8 @@ public sealed partial class BotanySystem var light = EnsureComp(entity); light.Radius = proto.BioluminescentRadius; light.Color = proto.BioluminescentColor; + light.CastShadows = false; // this is expensive, and botanists make lots of plants + light.Dirty(); } if (proto.Slip)