Set a consistent seed when starting the CI server run (#27)

This commit is contained in:
Raven Szewczyk 2023-07-30 19:55:02 +01:00 committed by GitHub
parent f6010dfa53
commit 5a1298b4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,8 @@ jobs:
run: | run: |
mkdir -p run mkdir -p run
echo "eula=true" > run/eula.txt echo "eula=true" > run/eula.txt
# Set a constant seed with a village at spawn
echo "level-seed=-6202107849386030209\nonline-mode=true\n" > run/server.properties
echo "stop" > run/stop.txt echo "stop" > run/stop.txt
timeout ${{ inputs.timeout }} ./gradlew --build-cache --info --stacktrace runServer 2>&1 < run/stop.txt | tee -a server.log || true timeout ${{ inputs.timeout }} ./gradlew --build-cache --info --stacktrace runServer 2>&1 < run/stop.txt | tee -a server.log || true