force server build on existing server
This commit is contained in:
parent
68ff0f0d78
commit
443a153024
1 changed files with 5 additions and 3 deletions
|
@ -521,6 +521,7 @@ class PrimaryController {
|
|||
}
|
||||
|
||||
progressBar.isVisible = false
|
||||
findServerJar()
|
||||
withContext(Dispatchers.JavaFx){
|
||||
worldSettingsPane.isDisable = false
|
||||
directoryPane.isDisable = false
|
||||
|
@ -764,9 +765,10 @@ class PrimaryController {
|
|||
val result = createDialog("warning", "This server directory was not created by \nServerCraft. Errors may occur; copying\nthe world directories to a new folder may be\nsafer. Proceed anyway?")
|
||||
statusBar.text = "Ready."
|
||||
if (result) {
|
||||
startButton.isDisable = false
|
||||
startButton.isDisable = true
|
||||
File(directory + "ServerCraft").mkdir()
|
||||
buildButton.text = "Build Server"
|
||||
statusBar.text = "Server converted. Build the server to start."
|
||||
server.loadProps(dir, convert=true)
|
||||
}
|
||||
return result
|
||||
|
@ -777,10 +779,10 @@ class PrimaryController {
|
|||
File(directory + "ServerCraft").mkdir()
|
||||
startButton.isDisable = true
|
||||
buildButton.text = "Build Server"
|
||||
}
|
||||
statusBar.text = "Ready."
|
||||
server.dir = dir
|
||||
server.loadProps()
|
||||
}
|
||||
statusBar.text = "Ready."
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue