-
-
Notifications
You must be signed in to change notification settings - Fork 42
Project repository links to Paper-Archive when version is >26.1 #219
Copy link
Copy link
Labels
type: bugSomething isn't workingSomething isn't working
Description
On the software download page for experimental builds of Paper 26.1(.1), the commit hashes link to the Paper-Archive repository, instead of the Paper repository. Minor issue.
Lines 51 to 63 in 695a984
| export const getProjectRepository = (project: string, version: string): string => { | |
| if (project !== "paper") return `https://github.com/PaperMC/${project}`; | |
| if (project === "paper" && version === "1.7.10") return "https://github.com/PaperMC/Paper-1.7"; | |
| const baseVersion = [21, 4]; // 1.21.4 is after the hardfork | |
| const isBelowBaseVersion = version | |
| .replace(/^1\./, "") | |
| .split(".") | |
| .map(Number) | |
| .some((v, i) => v < (baseVersion[i] || 0)); | |
| return isBelowBaseVersion ? "https://github.com/PaperMC/Paper-Archive" : "https://github.com/PaperMC/Paper"; | |
| }; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for Bug.