mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-05 21:34:05 +02:00
Fix not internally updating selected Minecraft version when switching version types
This commit is contained in:
parent
ad7964677e
commit
f211708509
@ -1,16 +1,16 @@
|
||||
@using Phantom.Common.Data.Minecraft
|
||||
@using System.Collections.Immutable
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@using System.Diagnostics.CodeAnalysis
|
||||
@using Phantom.Server.Minecraft
|
||||
@using Phantom.Server.Services.Agents
|
||||
@using Phantom.Server.Services.Audit
|
||||
@using Phantom.Server.Services.Instances
|
||||
@using System.Collections.Immutable
|
||||
@using System.ComponentModel.DataAnnotations
|
||||
@using System.Diagnostics.CodeAnalysis
|
||||
@using Phantom.Common.Data.Java
|
||||
@using Phantom.Server.Web.Components.Utils
|
||||
@using Phantom.Server.Web.Identity.Interfaces
|
||||
@using Phantom.Common.Data.Minecraft
|
||||
@using Phantom.Common.Data.Instance
|
||||
@using Phantom.Common.Data.Java
|
||||
@using Phantom.Common.Data
|
||||
@using Phantom.Server.Web.Identity.Interfaces
|
||||
@inject INavigation Nav
|
||||
@inject MinecraftVersions MinecraftVersions
|
||||
@inject AgentManager AgentManager
|
||||
@ -301,7 +301,7 @@
|
||||
var allMinecraftVersions = await MinecraftVersions.GetVersions(CancellationToken.None);
|
||||
availableMinecraftVersions = allMinecraftVersions.Where(version => version.Type == type).ToImmutableArray();
|
||||
|
||||
if (!availableMinecraftVersions.IsEmpty && !allMinecraftVersions.Any(version => version.Id == form.MinecraftVersion)) {
|
||||
if (!availableMinecraftVersions.IsEmpty && !availableMinecraftVersions.Any(version => version.Id == form.MinecraftVersion)) {
|
||||
form.MinecraftVersion = availableMinecraftVersions[0].Id;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user