Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yechentide committed May 1, 2022
1 parent 4cf70bb commit 32faac1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 3 additions & 6 deletions DSTManager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -eu

# 这个脚本里将会读取其他的全部shell脚本, 所以以下全局常量/变量在其他shell脚本里可用
declare OS='MacOS'
declare -r SCRIPT_VERSION='v1.4.9.5'
declare -r SCRIPT_VERSION='v1.4.9.6'
declare -r ARCHITECTURE=$(getconf LONG_BIT)
declare -r REPO_ROOT_DIR="$HOME/DSTServerManager"
# DST服务端文件夹
Expand Down Expand Up @@ -647,7 +647,7 @@ function display_running_clusters() {

function main_panel() {
check_script_update
declare -r -a action_list=('启动服务端' '操作控制台' '更新服务端' '其他服务端操作' '存档管理' 'Mod管理' '更新脚本' '退出')
declare -r -a action_list=('启动服务端' '操作控制台' '其他服务端操作' '存档管理' 'Mod管理' '更新脚本' 'About' '退出')

while true; do
clear
Expand All @@ -669,10 +669,7 @@ function main_panel() {
'操作控制台')
shard_console
;;
'更新服务端')
update_server
;;
'服务端管理')
'其他服务端操作')
server_panel
;;
'存档管理')
Expand Down
4 changes: 4 additions & 0 deletions docs/更新日志.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 1.4.9.6

- bug fix

## 1.4.9.5

- 取消检测worldgenoverride.lua
Expand Down
2 changes: 1 addition & 1 deletion scripts/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function start_server() {

function shard_console() {
array=$(generate_list_from_tmux -s)
if [[ ${#array} == 0 ]]; then color_print error '没有运行中的世界!'; continue; fi
if [[ ${#array} == 0 ]]; then color_print error '没有运行中的世界!'; sleep 1; return; fi

select_one tip '请选择要操作哪个世界的控制台'
console_manager $answer
Expand Down

0 comments on commit 32faac1

Please sign in to comment.