From 4eea3c0f838a4aae90be6e38ea868284ebc182d7 Mon Sep 17 00:00:00 2001 From: sys4 Date: Wed, 10 Nov 2021 12:02:33 +0100 Subject: [PATCH] [minetestmapper] Corrige emplacement du spawn dans genmap.sh --- genmap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genmap.sh b/genmap.sh index b57899d..4546bb9 100755 --- a/genmap.sh +++ b/genmap.sh @@ -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