summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 18:25:00 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 18:25:00 -0400
commit0539bb8f3705e5c50d0e5790e2af97f39aed04b8 (patch)
treec21f468cdae670432aa067d97f71106a23210608 /src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs
parentb6c8cfc28b2c94e6dc3cb07d3058371dd6775e70 (diff)
downloadSMAPI-0539bb8f3705e5c50d0e5790e2af97f39aed04b8.tar.gz
SMAPI-0539bb8f3705e5c50d0e5790e2af97f39aed04b8.tar.bz2
SMAPI-0539bb8f3705e5c50d0e5790e2af97f39aed04b8.zip
simplify with newer pattern features
Diffstat (limited to 'src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs
index d388f4b0..7935b05f 100644
--- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs
+++ b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/World/ClearCommand.cs
@@ -94,9 +94,8 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.World
this.RemoveObjects(location, obj =>
obj is not Chest
&& (
- obj.Name == "Weeds"
- || obj.Name == "Stone"
- || (obj.ParentSheetIndex == 294 || obj.ParentSheetIndex == 295)
+ obj.Name is "Weeds" or "Stone"
+ || obj.ParentSheetIndex is 294 or 295
)
)
+ this.RemoveResourceClumps(location, clump => this.DebrisClumps.Contains(clump.parentSheetIndex.Value));