Skip to content

Fix BlockRedstoneEvent for tripwire hooks#9724

Closed
Lulu13022002 wants to merge 1 commit into
PaperMC:masterfrom
Lulu13022002:fix/redhook
Closed

Fix BlockRedstoneEvent for tripwire hooks#9724
Lulu13022002 wants to merge 1 commit into
PaperMC:masterfrom
Lulu13022002:fix/redhook

Conversation

@Lulu13022002
Copy link
Copy Markdown
Contributor

Closes #9714

Previously the BlockRedstoneEvent was called for every update even non redstone related one and was always unpowered (15 -> 0). Now only two events at least are called (four when cancelled, i'm not 100% sure about) and the redstone current changes are properly respected.

@Lulu13022002 Lulu13022002 requested a review from a team as a code owner September 14, 2023 17:23
Comment thread patches/server/1032-Fix-BlockRedstoneEvent-for-tripwire-hooks.patch Outdated
@lynxplay
Copy link
Copy Markdown
Contributor

Can you merge this into https://github.com/PaperMC/Paper/blob/master/patches/server/1032-Call-BlockRedstoneEvents-for-lecterns.patch, rename the title to something like "Call BlockRedstoneEvent properly" or something the likes ?

Don't forget smack yourself as a co-author 🙏

@Lulu13022002 Lulu13022002 force-pushed the fix/redhook branch 3 times, most recently from abc78a1 to 2bec6a6 Compare September 17, 2023 10:37
@SO-32
Copy link
Copy Markdown

SO-32 commented Sep 28, 2023

Tested on base and pr. Issues reproduced on base for both tripwire hooks and lecterns. Fix confirmed for both in pr

Copy link
Copy Markdown
Member

@Warriorrrr Warriorrrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing identifying patch comments but rest looks good

Comment thread patches/server/1032-Call-BlockRedstoneEvent-properly.patch Outdated
@Lulu13022002 Lulu13022002 force-pushed the fix/redhook branch 2 times, most recently from d9bcc96 to 16124c2 Compare February 2, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

Tripwire hook not registering properly on BlockRedstoneEvents

6 participants