mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
RegisterNotRequiredForAllPlayers: check NetworkBehaviour too
This commit is contained in:
parent
2b2eddd462
commit
42a033249a
@ -242,7 +242,9 @@ public class QSBCore : ModBehaviour
|
|||||||
|
|
||||||
foreach (var type in addonAssembly.GetTypes())
|
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);
|
DebugLog.ToConsole($"Addon \"{uniqueName}\" cannot be cosmetic, as it creates networking objects.", MessageType.Error);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user