Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/VazkiiMods/Zeta
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar committed Sep 10, 2024
2 parents 52bb1b6 + 2685e5d commit 3de8522
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"
- name: Validate gradlew integrity
uses: gradle/wrapper-validation-action@v1
- name: Cache
Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
gpg --local-user "Violet Moon Signing Key" --armor \
--detach-sign ${{ steps.calculate_artifact_names.outputs.forge }}
- name: Archive Forge Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Forge
path: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,6 @@ protected <O> void trackRegisteredObject(ResourceKey<Registry<O>> keyGeneric, Ho
* Gets all the registered objects from this Zeta
*/
public <O> Collection<Holder<O>> getRegisteredObjects(ResourceKey<Registry<O>> registry) {
return (Collection<Holder<O>>) (Collection) myRegisteredObjects.get((ResourceKey) registry);
return (Collection<Holder<O>>) (Collection) myRegisteredObjects.getOrDefault((ResourceKey) registry, List.of());
}
}

0 comments on commit 3de8522

Please sign in to comment.