Fix a bunch of logger warnings (#17691)

This commit is contained in:
metalgearsloth
2023-06-27 23:56:52 +10:00
committed by GitHub
parent 4d1ab16ed8
commit 90110183be
31 changed files with 56 additions and 49 deletions

View File

@@ -33,7 +33,8 @@ public abstract class SharedDiceSystem : EntitySystem
private void OnUseInHand(EntityUid uid, DiceComponent component, UseInHandEvent args)
{
if (args.Handled) return;
if (args.Handled)
return;
args.Handled = true;
Roll(uid, component);
@@ -58,7 +59,7 @@ public abstract class SharedDiceSystem : EntitySystem
if (side < 1 || side > die.Sides)
{
Logger.Error($"Attempted to set die {ToPrettyString(uid)} to an invalid side ({side}).");
Log.Error($"Attempted to set die {ToPrettyString(uid)} to an invalid side ({side}).");
return;
}
@@ -74,7 +75,7 @@ public abstract class SharedDiceSystem : EntitySystem
if (value % die.Multiplier != 0 || value/ die.Multiplier + die.Offset < 1)
{
Logger.Error($"Attempted to set die {ToPrettyString(uid)} to an invalid value ({value}).");
Log.Error($"Attempted to set die {ToPrettyString(uid)} to an invalid value ({value}).");
return;
}