-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make sure to generate s3 links with the right platform, if jars …
…share platforms
- Loading branch information
1 parent
43a8559
commit f04a253
Showing
4 changed files
with
36 additions
and
10 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
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
17 changes: 17 additions & 0 deletions
17
...o/papermc/hangar/model/db/versions/downloads/ProjectVersionDownloadTableWithPlatform.java
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.papermc.hangar.model.db.versions.downloads; | ||
|
||
import io.papermc.hangar.model.common.Platform; | ||
|
||
public class ProjectVersionDownloadTableWithPlatform extends ProjectVersionDownloadTable { | ||
|
||
private final Platform platform; | ||
|
||
public ProjectVersionDownloadTableWithPlatform(final long id, final long versionId, final Long fileSize, final String hash, final String fileName, final String externalUrl, final Platform platform) { | ||
super(id, versionId, fileSize, hash, fileName, externalUrl); | ||
this.platform = platform; | ||
} | ||
|
||
public Platform getPlatform() { | ||
return this.platform; | ||
} | ||
} |
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