Corrige génération carte pour ne pas prendre le spawn du nether

This commit is contained in:
bri cassa 2021-08-28 00:52:02 +02:00
parent 8e5eebc7a9
commit 5f619064ef

View File

@ -52,7 +52,7 @@ action() {
# Copie du dossier leaftest vers /tmp puis on l'exécute de là # Copie du dossier leaftest vers /tmp puis on l'exécute de là
local config="$serverpath/minetest/minetest.conf" local config="$serverpath/minetest/minetest.conf"
local workdir=$(mktemp -d "/tmp/minetest-mapper.XXXXXXXXX") local workdir=$(mktemp -d "/tmp/minetest-mapper.XXXXXXXXX")
local spawn=$(grep "static_spawnpoint" "$config" | tr -d " " | cut -f 2 -d "=" | cut -f 1 -d' '); local spawn=$(grep "^static_spawnpoint" "$config" | tr -d " " | cut -f 2 -d "=" | cut -f 1 -d' ');
local spawnx=$(cut -f 1 -d "," <<<$spawn) local spawnx=$(cut -f 1 -d "," <<<$spawn)
local spawnz=$(cut -f 3 -d "," <<<$spawn) local spawnz=$(cut -f 3 -d "," <<<$spawn)
local mapsize=12288 local mapsize=12288