[minetestmapper] Corrige emplacement du spawn dans genmap.sh

This commit is contained in:
bri cassa 2021-11-10 12:02:33 +01:00
parent 6781ea3b7e
commit 4eea3c0f83

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 "=");
local spawnx=$(cut -f 1 -d "," <<<$spawn)
local spawnz=$(cut -f 3 -d "," <<<$spawn)
local mapsize=12288