Add check for latest `[[ "${MC_VERSION}" == "latest" ]]`.
Previously, it was only checking for exact versions or empty value, and I completely forgot to test latest.
Resolves#1516
Rewrite the egg to support dev and stable versions, together with newer +1.16 installers.
Does not rely on their own API latest fetching, because it picks latest Github release that can include old pre-releases.
clean up the code and add more debugging steps for easier troubleshooting when someone reports issues
Easy to view diff: <https://www.diffchecker.com/3iJ9lVzH>
For 1.17 JPMS arguments, fix regex to match`^1\.(17|18|19|20|21|22|23)` or latest instead of only dot . minor versions, which is something I didn't notice in a previous PR. This should future proof it.
add support for Spigot 1.18 - 1.23 including snapshots that should future proof it
change install image and remove packages from installation since our install image contains them all
add troubleshooting steps and messages should install fail
use temurin Java images for building since adoptopenjdk is deprecated and doesn't have 17
overwrite used memory for building to 1024 if less than 1024 is used . Wings allocates minimum of 1024MB memory, however, it's not enough to build 1.17+