Skip to content

Commit a639170

Browse files
Merge branch 'master' of https://github.com/TwoTenPvP/MLAPI
2 parents 6b65f8c + fea02d1 commit a639170

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private void CacheAttributedMethods()
275275
if (cachedMethods.ContainsKey(hash))
276276
{
277277
MethodInfo previous = cachedMethods[hash];
278-
if (LogHelper.CurrentLogLevel <= LogLevel.Normal) LogHelper.LogError(string.Format("Method {0} and {1} have the same hash. Rename one of the methods or increase Attribute Message Mode", previous.Name, method.Name));
278+
if (LogHelper.CurrentLogLevel <= LogLevel.Error) LogHelper.LogError(string.Format("Method {0} and {1} have the same hash. Rename one of the methods or increase Attribute Message Mode", previous.Name, method.Name));
279279
}
280280
cachedMethods[hash] = method;
281281
}

MLAPI/NetworkingManagerComponents/Core/LogHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public enum LogLevel
88
{
99
Developer,
1010
Normal,
11+
Error,
1112
Nothing
1213
}
1314
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member

0 commit comments

Comments
 (0)