Skip to content

Commit 9fb60f0

Browse files
committed
🚧 Add AJ version download links, and discord link
1 parent a10eb96 commit 9fb60f0

File tree

6 files changed

+38
-1
lines changed

6 files changed

+38
-1
lines changed

‎src/lib/downloadLinks.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const LATEST_RELEASE =
2+
'https://github.com/Animated-Java/animated-java/releases/latest/download/animated_java.js'
3+
export const LEGACY_BETA =
4+
'https://github.com/Animated-Java/animated-java/releases/download/legacy-beta/animated_java.js'
5+
export const LEGACY_ARMORSTANDS =
6+
'https://github.com/Animated-Java/animated-java/releases/download/legacy-armorstands/animated_java.js'

‎src/routes/discord/+page.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { redirect } from '@sveltejs/kit'
2+
3+
export const prerender = true
4+
5+
export function load() {
6+
throw redirect(302, 'https://discord.com/invite/jFgY4PXZfp')
7+
}

‎src/routes/docs/[...5]resources/[...1]faq/+page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There are a few things you can do to make sure your models run as smoothly as po
2323
- Use a few bones as possible. The more bones you have, the more NBT modifications need to be done each frame. Note that bones with no Cubes in them are not exported, and therefor do not contribute to performance issues.
2424
- Avoid playing animations when your Rig is not visible to the player.
2525

26-
Animated Java is designed to be as efficient as possible, but there are still some limitations to what can be done with commands. If you are experiencing performance issues, consider joining the [Animated Java Discord](https://discord.gg/7Q2uY8Z) for help and advice.
26+
Animated Java is designed to be as efficient as possible, but there are still some limitations to what can be done with commands. If you are experiencing performance issues, consider joining the [Animated Java Discord](https://discord.gg/jFgY4PXZfp) for help and advice.
2727

2828
---
2929

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { LATEST_RELEASE } from '$lib/downloadLinks'
2+
import { redirect } from '@sveltejs/kit'
3+
4+
export const prerender = true
5+
6+
export function load() {
7+
throw redirect(302, LATEST_RELEASE)
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { LEGACY_ARMORSTANDS } from '$lib/downloadLinks'
2+
import { redirect } from '@sveltejs/kit'
3+
4+
export const prerender = true
5+
6+
export function load() {
7+
throw redirect(302, LEGACY_ARMORSTANDS)
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { LEGACY_BETA } from '$lib/downloadLinks'
2+
import { redirect } from '@sveltejs/kit'
3+
4+
export const prerender = true
5+
6+
export function load() {
7+
throw redirect(302, LEGACY_BETA)
8+
}

0 commit comments

Comments
 (0)