mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-04-13 09:31:28 +00:00
Allow piston-data.mojang.com in VersionInfo#hashFromUrl
This commit is contained in:
parent
1fbeb7f712
commit
668e05a24d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class VersionInfo
|
|||
{
|
||||
return hashFromUrl( mappingsUrl );
|
||||
}
|
||||
private static final Pattern URL_PATTERN = Pattern.compile( "https://launcher.mojang.com/v1/objects/([0-9a-f]{40})/.*" );
|
||||
private static final Pattern URL_PATTERN = Pattern.compile( "https://(?:launcher|piston-data).mojang.com/v1/objects/([\\da-f]{40})/.*" );
|
||||
|
||||
public static String hashFromUrl(String url)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue