URL format changed for Forge 1.7.10 from 10.13.2.1300

This commit is contained in:
nichivo 2015-06-13 16:51:07 +10:00
parent f2e6696368
commit ed19d745cb

View file

@ -64,7 +64,15 @@ case $TYPE in
;;
esac
normForgeVersion="$norm-$FORGE_VERSION"
# URL format changed for 1.7.10 from 10.13.2.1300
sorted=$((echo $FORGE_VERSION; echo 10.13.2.1300) | sort -V | head -1)
if [[ $norm == '1.7.10' && $sorted == '10.13.2.1300' ]]; then
# if $FORGEVERSION >= 10.13.2.1300
normForgeVersion="$norm-$FORGE_VERSION-$norm"
else
normForgeVersion="$norm-$FORGE_VERSION"
fi
FORGE_INSTALLER="forge-$normForgeVersion-installer.jar"
SERVER="forge-$normForgeVersion-universal.jar"