Corrige génération carte pour ne pas prendre le spawn du nether
This commit is contained in:
parent
8e5eebc7a9
commit
5f619064ef
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user