mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-03-01 05:07:53 +01:00
Compare commits
2 Commits
aed342d17a
...
2689e07194
| Author | SHA1 | Date | |
|---|---|---|---|
|
2689e07194
|
|||
|
a5f8872561
|
@@ -11,6 +11,10 @@ using Phantom.Utils.Collections;
|
||||
namespace Phantom.Controller.Minecraft;
|
||||
|
||||
public sealed partial class MinecraftLaunchRecipes(MinecraftVersions minecraftVersions) {
|
||||
private static readonly ImmutableDictionary<string, string> Eula = ImmutableDictionary.From([
|
||||
("eula", "true"),
|
||||
]);
|
||||
|
||||
public async Task<Result<InstanceLaunchRecipe, MinecraftLaunchRecipeCreationFailReason>> Create(InstanceConfiguration configuration, CancellationToken cancellationToken) {
|
||||
string minecraftVersion = configuration.MinecraftVersion;
|
||||
|
||||
@@ -64,10 +68,6 @@ public sealed partial class MinecraftLaunchRecipes(MinecraftVersions minecraftVe
|
||||
return SanitizePathRegex().IsMatch(path) ? SanitizePathRegex().Replace(path, "_") : path;
|
||||
}
|
||||
|
||||
private static readonly ImmutableDictionary<string, string> Eula = ImmutableDictionary.From([
|
||||
("eula", "true"),
|
||||
]);
|
||||
|
||||
private static ImmutableDictionary<string, string> ServerProperties(InstanceConfiguration configuration) {
|
||||
return ImmutableDictionary.From([
|
||||
("server-port", configuration.ServerPort.ToString()),
|
||||
|
||||
Reference in New Issue
Block a user