Skip to content

Commit

Permalink
Remove commented out line
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-r-elp committed Sep 15, 2024
1 parent 8cc1164 commit 1497fa7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions MultiplayerExtensions/Patchers/EnvironmentPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ private void PreventEnvironmentInjection(SceneDecoratorContext __instance, List<
_logger.Info($"Fixing bind conflicts on scene '{scene.name}'.");
List<MonoBehaviour> removedBehaviours = new();

//if (scene.name == "MultiplayerEnvironment")
// removedBehaviours = monoBehaviours.FindAll(behaviour => behaviour is ZenjectBinding binding && binding.Components.Any(c => c is LightWithIdManager));
if (scene.name.Contains("Environment") && !scene.name.Contains("Multiplayer"))
removedBehaviours = monoBehaviours.FindAll(behaviour => (behaviour is ZenjectBinding binding && binding.Components.Any(c => c is LightWithIdManager)));

Expand Down

0 comments on commit 1497fa7

Please sign in to comment.