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
|
progressBar.isVisible = false
|
||||||
|
findServerJar()
|
||||||
withContext(Dispatchers.JavaFx){
|
withContext(Dispatchers.JavaFx){
|
||||||
worldSettingsPane.isDisable = false
|
worldSettingsPane.isDisable = false
|
||||||
directoryPane.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?")
|
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."
|
statusBar.text = "Ready."
|
||||||
if (result) {
|
if (result) {
|
||||||
startButton.isDisable = false
|
startButton.isDisable = true
|
||||||
File(directory + "ServerCraft").mkdir()
|
File(directory + "ServerCraft").mkdir()
|
||||||
buildButton.text = "Build Server"
|
buildButton.text = "Build Server"
|
||||||
|
statusBar.text = "Server converted. Build the server to start."
|
||||||
server.loadProps(dir, convert=true)
|
server.loadProps(dir, convert=true)
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
@ -777,10 +779,10 @@ class PrimaryController {
|
||||||
File(directory + "ServerCraft").mkdir()
|
File(directory + "ServerCraft").mkdir()
|
||||||
startButton.isDisable = true
|
startButton.isDisable = true
|
||||||
buildButton.text = "Build Server"
|
buildButton.text = "Build Server"
|
||||||
}
|
|
||||||
statusBar.text = "Ready."
|
|
||||||
server.dir = dir
|
server.dir = dir
|
||||||
server.loadProps()
|
server.loadProps()
|
||||||
|
}
|
||||||
|
statusBar.text = "Ready."
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue