| | 1 | | using DCL; |
| | 2 | | using Decentraland.Bff; |
| | 3 | | using UnityEngine; |
| | 4 | |
|
| | 5 | | namespace DCLPlugins.RealmsPlugin |
| | 6 | | { |
| | 7 | | public class RealmsBlockerModifier : IRealmsModifier |
| | 8 | | { |
| | 9 | |
|
| | 10 | | public void OnEnteredRealm(bool isCatalyst, AboutResponse realmConfiguration) => |
| 8 | 11 | | Environment.i.world.blockersController.SetEnabled(isCatalyst || ShouldGreenBlockersBeActive(realmConfigurati |
| | 12 | |
|
| 4 | 13 | | public void Dispose() { } |
| | 14 | |
|
| | 15 | | private bool ShouldGreenBlockersBeActive(string cityLoaderContentServers) |
| | 16 | | { |
| 0 | 17 | | return !string.IsNullOrEmpty(cityLoaderContentServers); |
| | 18 | | } |
| | 19 | |
|
| | 20 | | } |
| | 21 | | } |