-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44fac2c
commit 5aff1dd
Showing
1 changed file
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,17 @@ | |
MOD_PREFIX=mtg_ | ||
MODS_TO_KEEP=(binoculars bucket butterflies creative default doors dye fire fireflies flowers map player_api screwdriver sfinv stairs tnt vessels walls wool xpanes) | ||
|
||
cd ../mods/mtg/ # Will work if we run from inside the scripts folder | ||
cd mods/mtg/ # Will work if we run from inside the capturetheflag folder | ||
cd "$(dirname "$0")/../mods/mtg/" | ||
|
||
if [ ! -f ./modpack.conf ]; then | ||
echo "May have changed into the wrong directory, aborting." | ||
exit | ||
fi | ||
|
||
git clone [email protected]:minetest/minetest_game.git | ||
echo "" | ||
|
||
mv minetest_game/mods . | ||
mv ./minetest_game/mods . | ||
|
||
echo "Updating mods..." | ||
|
||
|
@@ -19,8 +24,23 @@ done | |
|
||
echo "Done. Removing unneeded folders..." | ||
|
||
rm -r mods/ | ||
rm -r ./mods | ||
|
||
rm -rf minetest_game/ | ||
rm -rf ./minetest_game | ||
|
||
echo "Done. minetest_game mods are updated!" | ||
|
||
echo "" | ||
echo "Applying redef mod..." | ||
|
||
rm -r ./redef | ||
|
||
echo "" | ||
git clone https://git.0x7be.net/dirk/redef.git | ||
echo "" | ||
|
||
rm -rf ./redef/.git | ||
|
||
sed -i -e "s/\['Maximum Stack Size'\]/--\['Maximum Stack Size'\]/g" ./redef/init.lua # Comment out the stack size change | ||
|
||
echo "Done. redef applied!" |