Skip to content

Commit

Permalink
LittleFixes2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonsant committed Dec 1, 2024
1 parent d6b8957 commit e0bb297
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void Populate(PlantAnalyzerScannedSeedPlantInformation msg)
var target = _entityManager.GetEntity(msg.TargetEntity);
Title = Loc.GetString("plant-analyzer-interface-title");

if (target == null)
if (target is null)
{
NoData.Visible = true;
return;
Expand All @@ -58,7 +58,7 @@ public void Populate(PlantAnalyzerScannedSeedPlantInformation msg)

// Process message fields into strings.
StringBuilder chemString = new();
if (msg.SeedChem != null)
if (msg.SeedChem is not null)
{
foreach (var chem in msg.SeedChem)
{
Expand Down Expand Up @@ -101,7 +101,7 @@ public void Populate(PlantAnalyzerScannedSeedPlantInformation msg)
WeedTolerance.Text = Loc.GetString("plant-analyzer-tolerance-weed-tolerance", ("weedTolerance", adv is null ? "-" : $"{adv.Value.WeedTolerance:F1}"));
// Misc

if (adv != null)
if (adv is not null)
{
var advInst = adv.Value;
StringBuilder mutations = new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Content.Server.Botany.Components; // This is how it supposed to be
public sealed partial class PlantAnalyzerComponent : Component
{
[DataDefinition]
public partial struct PlantAnalyzerSetting
public partial struct PlantAnalyzerSettings
{
[DataField]
public bool AdvancedScan;
Expand All @@ -23,7 +23,7 @@ public partial struct PlantAnalyzerSetting
}

[DataField, ViewVariables]
public PlantAnalyzerSetting Settings = new();
public PlantAnalyzerSettings Settings = new();

[DataField, ViewVariables(VVAccess.ReadOnly)]
public DoAfterId? DoAfter;
Expand Down

0 comments on commit e0bb297

Please sign in to comment.