From fa2fbd705e6b67e27dd66fc6d01fa7e08a3bd15e Mon Sep 17 00:00:00 2001
From: James Chambers <05jchambers@gmail.com>
Date: Sat, 27 Aug 2022 21:01:44 -0600
Subject: [PATCH] Fix issue #2
---
README.md | 4 ++++
start.sh | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5a512ad..37a401b 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,10 @@ A popular place to get plugins is: issue #2)
+
August 22nd 2022
- Add NoScreen environment variable -- disables screen which prevents needing an interactive terminal (but disables some logging)
diff --git a/start.sh b/start.sh
index 85f0650..8c5132a 100755
--- a/start.sh
+++ b/start.sh
@@ -166,7 +166,7 @@ sed -i "/server-port=/c\server-port=$Port" /minecraft/server.properties
sed -i "/query\.port=/c\query\.port=$Port" /minecraft/server.properties
# Change Bedrock port in Geyser config
if [ -e /minecraft/plugins/Geyser-Spigot/config.yml ]; then
- sed -i "0,/ port: /c\ port: $BedrockPort" /minecraft/plugins/Geyser-Spigot/config.yml
+ sed -i -z "s/ port: [0-9]*/ port: $BedrockPort/" /minecraft/plugins/Geyser-Spigot/config.yml
fi
# Start server