@@ -24,7 +24,10 @@ internal sealed partial class ClientContext : ApplicationContext<ClientContext,
2424{
2525 internal static bool IsSinglePlayer { get ; set ; }
2626
27+ private bool _forceDeveloper ;
28+
2729 private IPlatformRunner ? mPlatformRunner ;
30+ private bool _isDeveloper ;
2831
2932 internal ClientContext (
3033 Assembly entryAssembly ,
@@ -41,7 +44,7 @@ IPacketHelper packetHelper
4144 try
4245 {
4346 var address = Dns . GetHostAddresses ( hostNameOrAddress ) . FirstOrDefault ( ) ;
44- IsDeveloper = ! ( address ? . IsPublic ( ) ?? true ) ;
47+ _forceDeveloper = ! ( address ? . IsPublic ( ) ?? true ) ;
4548 }
4649 catch ( SocketException socketException )
4750 {
@@ -56,7 +59,7 @@ IPacketHelper packetHelper
5659 "Failed to resolve host '{HostNameOrAddress}'" ,
5760 hostNameOrAddress
5861 ) ;
59- IsDeveloper = true ;
62+ _forceDeveloper = true ;
6063 }
6164
6265 _ = FactoryRegistry < IPluginContext > . RegisterFactory ( new ClientPluginContext . Factory ( ) ) ;
@@ -80,7 +83,11 @@ private void PermissionSetOnActivePermissionSetChanged(string activePermissionSe
8083
8184 public event PermissionSetChangedHandler ? PermissionsChanged ;
8285
83- public bool IsDeveloper { get ; private set ; }
86+ public bool IsDeveloper
87+ {
88+ get => _isDeveloper || _forceDeveloper ;
89+ private set => _isDeveloper = value ;
90+ }
8491
8592 protected override bool UsesMainThread => true ;
8693
0 commit comments