Try fix click sorting & other misc changes. (#15686)

This commit is contained in:
Leon Friedrich
2023-04-23 19:44:27 +12:00
committed by GitHub
parent a4297aef1a
commit 3116621501
4 changed files with 5 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ public sealed class ExplosionCommand : IConsoleCommand
shell.WriteError($"Failed to parse intensity: {args[0]}");
return;
}
float slope = 5;
if (args.Length > 1 && !float.TryParse(args[1], out slope))
{
@@ -118,7 +118,7 @@ public sealed class ExplosionCommand : IConsoleCommand
return;
}
}
else
else if (!protoMan.TryIndex(ExplosionSystem.DefaultExplosionPrototypeId, out type))
{
// no prototype was specified, so lets default to whichever one was defined first
type = protoMan.EnumeratePrototypes<ExplosionPrototype>().FirstOrDefault();