Browse Source

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

master
sys4 2 months ago
parent
commit
5f619064ef
  1. 2
      genmap.sh

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

Loading…
Cancel
Save