diff --git a/mapper.sh b/mapper.sh index 70dade2..82fdbad 100755 --- a/mapper.sh +++ b/mapper.sh @@ -16,6 +16,12 @@ if [ ! -f $mapperpath ]; then exit 1 fi +if [ ! -d "$MAPDIR" ]; then + echo "Error, the directory \"$MAPDIR\" doesn't exist." + echo "Please specify the path to the minetest world" + exit 1 +fi + if [ -f downscaling/perc ]; then echo "Using SSIM based downscaling" downscale() {