remove QSBMessage check from RegisterNotRequiredForAllPlayers

This commit is contained in:
JohnCorby 2023-08-03 14:42:21 -07:00
parent 390e6b5a00
commit 4e8f1ade73

View File

@ -242,9 +242,9 @@ public class QSBCore : ModBehaviour
foreach (var type in addonAssembly.GetTypes()) foreach (var type in addonAssembly.GetTypes())
{ {
if (typeof(QSBMessage).IsAssignableFrom(type) || typeof(WorldObjectManager).IsAssignableFrom(type) || typeof(IWorldObject).IsAssignableFrom(type)) if (typeof(WorldObjectManager).IsAssignableFrom(type) || typeof(IWorldObject).IsAssignableFrom(type))
{ {
DebugLog.ToConsole($"Addon \"{uniqueName}\" cannot be cosmetic, as it creates networking events or objects.", MessageType.Error); DebugLog.ToConsole($"Addon \"{uniqueName}\" cannot be cosmetic, as it creates networking objects.", MessageType.Error);
return; return;
} }
} }