mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-02-28 20:07:57 +01:00
Compare commits
2 Commits
2689e07194
...
aed342d17a
| Author | SHA1 | Date | |
|---|---|---|---|
|
aed342d17a
|
|||
|
7e613a107a
|
@@ -11,10 +11,6 @@ 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;
|
||||
|
||||
@@ -68,6 +64,10 @@ 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