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
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ action() {
# Copie du dossier leaftest vers /tmp puis on l'exécute de là
local config="$serverpath/minetest/minetest.conf"
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 spawnz=$(cut -f 3 -d "," <<<$spawn)
local mapsize=12288