From 5005206631eb0d5be5275a9bc6a19f02a13626fc Mon Sep 17 00:00:00 2001 From: dingo Date: Mon, 9 Feb 2026 07:57:00 -0500 Subject: [PATCH] ForceVNext --- Game/Dungeon/DungeonHandler.Generation.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Game/Dungeon/DungeonHandler.Generation.cs b/Game/Dungeon/DungeonHandler.Generation.cs index 201e94b..bb80484 100644 --- a/Game/Dungeon/DungeonHandler.Generation.cs +++ b/Game/Dungeon/DungeonHandler.Generation.cs @@ -9,19 +9,19 @@ public sealed partial class DungeonHandler { private bool IsVNextGeneratorEnabled() { - using var scope = _scopeFactory.CreateScope(); - var configuration = scope.ServiceProvider.GetService(); - var fromConfig = configuration?.GetValue("Dungeon:EnableVNextGenerator"); - if (fromConfig.HasValue) - return fromConfig.Value; + //using var scope = _scopeFactory.CreateScope(); + //var configuration = scope.ServiceProvider.GetService(); + //var fromConfig = configuration?.GetValue("Dungeon:EnableVNextGenerator"); + //if (fromConfig.HasValue) + // return fromConfig.Value; - var raw = "true"; - // var raw = Environment.GetEnvironmentVariable("DUNGEON_VNEXT_ENABLED") - // ?? Environment.GetEnvironmentVariable("Dungeon__EnableVNextGenerator"); - if (string.IsNullOrWhiteSpace(raw)) - return false; + //var raw = Environment.GetEnvironmentVariable("DUNGEON_VNEXT_ENABLED") + // ?? Environment.GetEnvironmentVariable("Dungeon__EnableVNextGenerator"); + //if (string.IsNullOrWhiteSpace(raw)) + // return false; - return raw == "1" || raw.Equals("true", StringComparison.OrdinalIgnoreCase); + //return raw == "1" || raw.Equals("true", StringComparison.OrdinalIgnoreCase); + return true; } private async Task<(DungeonLayout layout, DungeonLayoutV2? layoutV2)> GenerateDungeonLayoutWithFallbackAsync(int seed, int tier, CancellationToken ct)