Minecraft: Stop Using Utils.get_options (#4879)

This commit is contained in:
FlitPix
2025-05-22 09:42:54 -04:00
committed by GitHub
parent 8cc6f10634
commit c5e768ffe3
2 changed files with 16 additions and 7 deletions

View File

@@ -27,9 +27,15 @@ class MinecraftSettings(settings.Group):
any games played on the "beta" channel have a high likelihood of no longer working on the "release" channel.
"""
forge_directory: ForgeDirectory = ForgeDirectory("Minecraft Forge server")
class JavaExecutable(settings.OptionalUserFilePath):
"""
Path to Java executable. If not set, will attempt to fall back to Java system installation.
"""
forge_directory: ForgeDirectory = ForgeDirectory("Minecraft NeoForge server")
max_heap_size: str = "2G"
release_channel: ReleaseChannel = ReleaseChannel("release")
java: JavaExecutable = JavaExecutable("")
class MinecraftWebWorld(WebWorld):