Skip to content

Commit

Permalink
Merge pull request #3 from Tweetzy/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kiranhart authored May 4, 2024
2 parents cc21c58 + 074b571 commit ebe3d92
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Crafty Build

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Set up JDK 16
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '16'

- name: Cache Maven Packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn verify -B --file pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.bukkit.event.inventory.ClickType;
import org.bukkit.inventory.ItemStack;

import java.util.Arrays;
import java.util.List;

public final class MobDropListGUI extends CraftyPagedGUI<TrackedMob> {
Expand Down Expand Up @@ -53,7 +54,7 @@ protected void drawFixed() {
@Override
protected ItemStack makeDisplayItem(TrackedMob mob) {
return QuickItem
.of(ValidMob.valueOf(mob.getEntity().name()).getHeadTexture())
.of(Arrays.stream(ValidMob.values()).filter(type -> type.getEntityType() == mob.getEntity()).findFirst().get().getHeadTexture())
.name("<GRADIENT:3dcf50>" + ChatUtil.capitalizeFully(mob.getEntity()) + "</GRADIENT:26d5ed>")
.lore(
"&7This mob is currently tracked",
Expand Down

0 comments on commit ebe3d92

Please sign in to comment.