Fix a bunch of logger warnings (#17691)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user