Skip to content
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

Sync code in onDestroyedByPushReaction to original #1752

Merged

Conversation

sciwhiz12
Copy link
Member

This PR fixes #1699 by synchronizing the code in IBlockExtension#onDestroyedByPushReaction to the original code from PistonBaseBlock (which was moved to the extension method).

Particularly, the flags passed to Level#setBlock is now a constant 18, which is the combination of Block#UPDATE_KNOWN_SHAPE and Block#UPDATE_CLIENTS.

Tested with the same reproduction steps in the linked issue, and the fix works as the sign does not pop off on piston push.

@sciwhiz12 sciwhiz12 added bug A bug or error 1.21.4 Targeted at Minecraft 1.21.4 labels Dec 9, 2024
@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Dec 10, 2024

  • Publish PR to GitHub Packages

Last commit published: bc5badea80e5f8197674c7101d4aa74cf1a6b942.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #1752' // https://github.com/neoforged/NeoForge/pull/1752
        url 'https://prmaven.neoforged.net/NeoForge/pr1752'
        content {
            includeModule('net.neoforged', 'testframework')
            includeModule('net.neoforged', 'neoforge')
        }
    }
}

MDK installation

In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin folder on the path.
The script will clone the MDK in a folder named NeoForge-pr1752.
On Powershell you will need to remove the -L flag from the curl invocation.

mkdir NeoForge-pr1752
cd NeoForge-pr1752
curl -L https://prmaven.neoforged.net/NeoForge/pr1752/net/neoforged/neoforge/21.4.16-beta-pr-1752-1.21-GH-1699-moss-block-sign-piston/mdk-pr1752.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.

@embeddedt embeddedt merged commit 7b47ce1 into neoforged:1.21.x Dec 11, 2024
6 checks passed
@sciwhiz12 sciwhiz12 deleted the 1.21/GH-1699-moss-block-sign-piston branch December 11, 2024 03:18
@neoforged-releases
Copy link

🚀 This PR has been released as NeoForge version 21.4.16-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.4 Targeted at Minecraft 1.21.4 bug A bug or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standard Vanilla behaviour changed on piston changing a block on which a sign is placed
3 participants