Fix server startup error with the new buildscript

This commit is contained in:
Raven Szewczyk 2025-10-31 11:21:37 +00:00 committed by GitHub
parent 3b8ebe9c6a
commit 8381e6ce69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,10 +119,12 @@ jobs:
- name: Run server for up to ${{ inputs.timeout }} seconds - name: Run server for up to ${{ inputs.timeout }} seconds
if: ${{ !inputs.client-only }} if: ${{ !inputs.client-only }}
run: | run: |
mkdir -p run mkdir -p run/server
echo "eula=true" > run/eula.txt echo "eula=true" > run/eula.txt
echo "eula=true" > run/server/eula.txt
# Set a constant seed with a village at spawn # Set a constant seed with a village at spawn
echo "level-seed=-6202107849386030209\nonline-mode=true\n" > run/server.properties echo "level-seed=-6202107849386030209\nonline-mode=true\n" > run/server.properties
echo "level-seed=-6202107849386030209\nonline-mode=true\n" > run/server/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