-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix redstone neighbor update order differing from vanilla #1866
base: 1.21.x
Are you sure you want to change the base?
Conversation
Last commit published: a24773c091c0641cbfdf204b29ae3e38d8511475. PR PublishingThe artifacts published by this PR:
Repository DeclarationIn order to use the artifacts published by the PR, add the following repository to your buildscript: repositories {
maven {
name 'Maven for PR #1866' // https://github.com/neoforged/NeoForge/pull/1866
url 'https://prmaven.neoforged.net/NeoForge/pr1866'
content {
includeModule('net.neoforged', 'testframework')
includeModule('net.neoforged', 'neoforge')
}
}
} MDK installationIn order to setup a MDK using the latest PR version, run the following commands in a terminal. mkdir NeoForge-pr1866
cd NeoForge-pr1866
curl -L https://prmaven.neoforged.net/NeoForge/pr1866/net/neoforged/neoforge/21.4.66-beta-pr-1866-neighbor-update-order/mdk-pr1866.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip To test a production environment, you can download the installer from here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is a fine place to have the constant. Can you add a comment along the lines of // Neo: Also send update to vertical directions
?
For reasoning on what's happening and what I suggest to do: #1863 (comment) |
PR has been updated, as per feedback, to exclude vanilla comparators from the vertical updates. |
For me it is confusing that these two different update methods exist, meaning blockstate.onNeighborChange seems to a neoforge method that by default only comparators implement. |
Fixes #1863. We now update in the horizontal plane order, and then the vertical plane order.
Technically we still emit updates on the vertical axis, while vanilla does not, but this should still be much closer to vanilla behavior.We also don't send vertical updates to vanilla comparators anymore.Suggestions would be appreciated on where to put
NEIGHBOR_UPDATE_LIST
.Most credit goes to 2No2Name for the code analysis.