From 42a033249ac30100cc7e4311ba4e90d00cdf567f Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Tue, 8 Aug 2023 20:26:46 -0700 Subject: [PATCH] RegisterNotRequiredForAllPlayers: check NetworkBehaviour too --- QSB/QSBCore.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index 8b22b71c..ed263a6a 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -242,7 +242,9 @@ public class QSBCore : ModBehaviour foreach (var type in addonAssembly.GetTypes()) { - if (typeof(WorldObjectManager).IsAssignableFrom(type) || typeof(IWorldObject).IsAssignableFrom(type)) + if (typeof(WorldObjectManager).IsAssignableFrom(type) || + typeof(IWorldObject).IsAssignableFrom(type) || + typeof(NetworkBehaviour).IsAssignableFrom(type)) { DebugLog.ToConsole($"Addon \"{uniqueName}\" cannot be cosmetic, as it creates networking objects.", MessageType.Error); return;