Skip to content

Commit

Permalink
Update PirateRadioSpawnRule.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Feb 13, 2024
1 parent dd9aa50 commit 997a358
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Content.Shared.Salvage;
using Content.Shared.Random.Helpers;
using System.Linq;
using Content.Shared.CCVar;

namespace Content.Server.StationEvents.Events;

Expand Down Expand Up @@ -55,7 +56,7 @@ protected override void Started(EntityUid uid, PirateRadioSpawnRuleComponent com
//End of Syndicate Listening Outpost spawning system

//Start of Debris Field Generation
var debrisSpawner = _confMan.GetCVar<bool>("worldgen");
var debrisSpawner = _confMan.GetCVar<bool>(CCVars.WorldgenEnabled);
if (debrisSpawner == true) return;
var debrisCount = Math.Clamp(component.DebrisCount, 0, 6);
if (debrisCount == 0) return;
Expand Down

0 comments on commit 997a358

Please sign in to comment.