mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix:(NetworkServer) Added check for UNITY_EDITOR in Listen
This commit is contained in:
parent
b2f2e1c464
commit
fd758a8a88
@ -120,7 +120,7 @@ public static void Listen(int maxConns)
|
|||||||
|
|
||||||
if (Transport.active is PortTransport portTransport)
|
if (Transport.active is PortTransport portTransport)
|
||||||
{
|
{
|
||||||
#if UNITY_SERVER
|
#if UNITY_SERVER && !UNITY_EDITOR
|
||||||
Console.ForegroundColor = ConsoleColor.Green;
|
Console.ForegroundColor = ConsoleColor.Green;
|
||||||
Console.WriteLine($"Server listening on port {portTransport.Port}");
|
Console.WriteLine($"Server listening on port {portTransport.Port}");
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
|
Loading…
Reference in New Issue
Block a user