Skip to content

Fix cancelled PotionSplashEvent putting out fires#12194

Open
notTamion wants to merge 3 commits into
PaperMC:mainfrom
notTamion:fix-water-pse-cancel
Open

Fix cancelled PotionSplashEvent putting out fires#12194
notTamion wants to merge 3 commits into
PaperMC:mainfrom
notTamion:fix-water-pse-cancel

Conversation

@notTamion
Copy link
Copy Markdown
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
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Feb 26, 2025
@notTamion notTamion force-pushed the fix-water-pse-cancel branch from 3731523 to 44ec69f Compare February 26, 2025 20:11
@Lulu13022002
Copy link
Copy Markdown
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