fix typos in recent changes (#837)

This commit is contained in:
Jesse Plamondon-Willard 2022-04-13 22:17:26 -04:00
parent 2765e3f9b3
commit 3078ae2a8e
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 7 additions and 7 deletions

View File

@ -93,18 +93,18 @@ namespace StardewModdingAPI.Framework.Logging
/// <param name="getScreenIdForLog">Get the screen ID that should be logged to distinguish between players in split-screen mode, if any.</param>
public LogManager(string logPath, ColorSchemeConfig colorConfig, bool writeToConsole, bool isVerbose, bool isDeveloperMode, Func<int?> getScreenIdForLog)
{
// init fields
// init log file
this.LogFile = new LogFileManager(logPath);
this.Monitor = this.GetMonitor("SMAPI");
this.MonitorForGame = this.GetMonitor("game");
// init construction logic
// init monitor
this.GetMonitorImpl = name => new Monitor(name, LogManager.IgnoreChar, this.LogFile, colorConfig, isVerbose, getScreenIdForLog)
{
WriteToConsole = writeToConsole,
ShowTraceInConsole = isDeveloperMode,
ShowFullStampInConsole = isDeveloperMode
};
this.Monitor = this.GetMonitor("SMAPI");
this.MonitorForGame = this.GetMonitor("game");
// redirect direct console output
this.ConsoleInterceptor = new InterceptingTextWriter(

View File

@ -153,7 +153,7 @@ namespace StardewModdingAPI.Framework.Reflection
{
for (Type? curType = type; curType != null; curType = curType.BaseType)
{
FieldInfo? fieldInfo = type.GetField(name, bindingFlags);
FieldInfo? fieldInfo = curType.GetField(name, bindingFlags);
if (fieldInfo != null)
{
type = curType;
@ -182,7 +182,7 @@ namespace StardewModdingAPI.Framework.Reflection
{
for (Type? curType = type; curType != null; curType = curType.BaseType)
{
PropertyInfo? propertyInfo = type.GetProperty(name, bindingFlags);
PropertyInfo? propertyInfo = curType.GetProperty(name, bindingFlags);
if (propertyInfo != null)
{
type = curType;
@ -210,7 +210,7 @@ namespace StardewModdingAPI.Framework.Reflection
{
for (Type? curType = type; curType != null; curType = curType.BaseType)
{
MethodInfo? methodInfo = type.GetMethod(name, bindingFlags);
MethodInfo? methodInfo = curType.GetMethod(name, bindingFlags);
if (methodInfo != null)
{
type = curType;