Skip to content

Commit

Permalink
link color fix, moving jars to a build path in root
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyagara committed Oct 10, 2024
1 parent 6a5863d commit 58d80a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- "*.gradle"
- "gradle.properties"

env:
VERSIONS: ("1.21.1")

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -38,10 +41,15 @@ jobs:
- name: Build
run: ./gradlew chiseledBuildAndCollect

- name: Move jars
run: |
for version in ${{ env.VERSIONS }}; do
mv ./versions/*/build/libs/*fabric.jar ./versions/*/build/libs/*neoforge.jar ./build/$version/
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: |
./versions/**/build/libs/*fabric.jar
./versions/**/build/libs/*neoforge.jar
./build
8 changes: 4 additions & 4 deletions src/main/java/com/cooptweaks/keybinds/misc/Link.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public static Text getHoverableText(ItemStack stack, Text playerName) {
Rarity rarity = stack.getRarity();

Formatting color = switch (rarity) {
case COMMON -> Formatting.DARK_GRAY;
case RARE -> Formatting.GOLD;
case EPIC -> Formatting.YELLOW;
default -> Formatting.GRAY;
case UNCOMMON -> Formatting.YELLOW;
case RARE -> Formatting.AQUA;
case EPIC -> Formatting.LIGHT_PURPLE;
default -> Formatting.WHITE;
};

MutableText item = stack.getName().copy()
Expand Down

0 comments on commit 58d80a4

Please sign in to comment.