hotfix config comparing, restart for update

This commit is contained in:
kirillius 2025-10-06 21:37:35 +03:00
parent 1c167b1608
commit 8763093ee7
2 changed files with 42 additions and 42 deletions

View File

@ -229,6 +229,6 @@ public class Config {
* Indicates whether the in-memory configuration diverges from the initially loaded snapshot.
*/
public boolean isModified() {
return !initialJSON.toString().equals(serialize(this).toString());
return !initialJSON.similar(serialize(this));
}
}

View File

@ -102,7 +102,7 @@ download_latest_version() {
return 1
fi
}
while true; do
# Находим последнюю версию файла
VER_FILE=$(find_local_version)
@ -142,7 +142,7 @@ run_java() {
}
# Запускаем Java с возможностью перезапуска при коде возврата 42
while true; do
run_java
EXIT_CODE=$?