From eb2b2b92a9125e201d016ed231f8a4f045563566 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Tue, 9 Apr 2019 15:29:05 -0400 Subject: [PATCH] correct detection of mods related to stopgap mods --- webapp/install-mts.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/webapp/install-mts.sh b/webapp/install-mts.sh index fc4e4f5..bfb1807 100755 --- a/webapp/install-mts.sh +++ b/webapp/install-mts.sh @@ -298,11 +298,26 @@ if [ "@$enable_client" = "@true" ]; then fi fi -if [ -d $HOME/minetest/games/ENLIVEN/mods/animal_materials ]; then - rsync -rt patches/mods-stopgap/animal_materials_legacy $HOME/minetest/games/ENLIVEN/mods/ +if [ -f $HOME/minetest/games/ENLIVEN/mods/codermobs/animal_materials.lua ]; then + if [ -d patches/mods-stopgap/animal_materials_legacy ]; then + echo "* installing animal_materials_legacy (only needed for worlds created with old versions of Bucket_Game)" + rsync -rt patches/mods-stopgap/animal_materials_legacy $HOME/minetest/games/ENLIVEN/mods/ + else + echo "* MISSING patches/mods-stopgap/animal_materials" + fi +else + echo "* SKIPPING a stopgap mod since no animal_materials" fi -if [ -d $HOME/minetest/games/ENLIVEN/mods/nftools ]; then - rsync -rt patches/mods-stopgap/nftools_legacy $HOME/minetest/games/ENLIVEN/mods/ + +if [ -d "$HOME/minetest/games/ENLIVEN/mods/coderbuild/nftools" ]; then + if [ -d patches/mods-stopgap/nftools_legacy ]; then + echo "* installing nftools_legacy (only needed for worlds created with old versions of Bucket_Game)" + rsync -rt patches/mods-stopgap/nftools_legacy $HOME/minetest/games/ENLIVEN/mods/ + else + echo "* MISSING patches/mods-stopgap/nftools_legacy" + fi +else + echo "* SKIPPING a stopgap mod since no nftools" fi popd