-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.21.x' into fix_modded_item_transforms
- Loading branch information
Showing
61 changed files
with
1,496 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Check PR local changes | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- synchronize | ||
- opened | ||
- ready_for_review | ||
- reopened | ||
|
||
jobs: | ||
check-local-changes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1000 | ||
fetch-tags: true | ||
|
||
# GradleUtils will append the branch name to the version, | ||
# but for that we need a properly checked out branch | ||
- name: Create branch for commit | ||
run: | ||
git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-read-only: false | ||
|
||
- name: Setup with Gradle | ||
run: ./gradlew setup | ||
|
||
- name: Run datagen with Gradle | ||
run: ./gradlew :neoforge:runData :tests:runData | ||
|
||
- name: Check no local changes are present | ||
run: | | ||
# Print status for easier debugging | ||
git status | ||
if [ -n "$(git status --porcelain)" ]; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# File generated by the GradleUtils `setupGitHubActionsWorkflows` task, avoid modifying it directly | ||
# The template can be found at https://github.com/neoforged/GradleUtils/blob/a65628b0c89dec60b357ce3f8f6bfa62934b8357/src/actionsTemplate/resources/.github/workflows/publish-jcc.yml | ||
|
||
name: Publish PR JCC output | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Build PRs] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
publish-jcc: | ||
if: true | ||
uses: neoforged/actions/.github/workflows/publish-jcc.yml@main | ||
with: | ||
beta_version_pattern: .*-beta.* | ||
secrets: | ||
JCC_GH_APP_ID: ${{ secrets.JCC_GH_APP_ID }} | ||
JCC_GH_APP_KEY: ${{ secrets.JCC_GH_APP_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
patches/net/minecraft/advancements/critereon/ItemAttributeModifiersPredicate.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- a/net/minecraft/advancements/critereon/ItemAttributeModifiersPredicate.java | ||
+++ b/net/minecraft/advancements/critereon/ItemAttributeModifiersPredicate.java | ||
@@ -40,6 +_,14 @@ | ||
return !this.modifiers.isPresent() || this.modifiers.get().test(p_341374_.modifiers()); | ||
} | ||
|
||
+ /** | ||
+ * Neo: Override this method to reflect gameplay attribute modifiers instead of only NBT modifiers. | ||
+ */ | ||
+ @Override | ||
+ public boolean matches(ItemStack p_333958_) { | ||
+ return matches(p_333958_, p_333958_.getAttributeModifiers()); | ||
+ } | ||
+ | ||
public static record EntryPredicate( | ||
Optional<HolderSet<Attribute>> attribute, | ||
Optional<ResourceLocation> id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
patches/net/minecraft/client/player/RemotePlayer.java.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.