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

Fix cancelled PotionSplashEvent putting out fires #12194

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

notTamion
Copy link
Contributor

@notTamion notTamion commented Feb 26, 2025

fixes #11981
i think we should prevent this from happening as to me it seems the only reason this wasn't put where all the other water splash potion logic is is that the onHitBlock method was just convenient for mojang

EDIT: this also provides us the opportunity to expand the WaterBottleSplashEvent, as waterbottles putting out fires is obviously a big part of their behavior.

@notTamion notTamion requested a review from a team as a code owner February 26, 2025 20:03
@notTamion notTamion force-pushed the fix-water-pse-cancel branch from 3731523 to 44ec69f Compare February 26, 2025 20:11
@Lulu13022002
Copy link
Contributor

It also feels weird to only cancel interaction with fire but still handle redstone thing and everything called by Block#onProjectileHit. So maybe the responsibily should be moved to the ProjectileHitEvent.

@notTamion notTamion force-pushed the fix-water-pse-cancel branch from f51ad66 to 662749b Compare March 4, 2025 18:48
@kennytv kennytv added the type: bug Something doesn't work as it was intended to. label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something doesn't work as it was intended to.
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

PotionSplashEvent doesn't prevent putting out fires
3 participants