Skip to content

fix: empty/fill of water or lava buckets against plot edges - #4945

Open
florianreuth wants to merge 1 commit into
IntellectualSites:mainfrom
florianreuth:fix/water-lava-buckets-place
Open

florianreuth wants to merge 1 commit into
IntellectualSites:mainfrom
florianreuth:fix/water-lava-buckets-place

Conversation

@florianreuth

Copy link
Copy Markdown
Contributor

Overview

Fixes #4832

Description

Handles BUCKET interactions properly so that they aren't cancelled when targeting plot edges or the plot ground.

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

Fixes IntellectualSites#4832

Signed-off-by: Florian Reuth <git@florianreuth.de>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:39
@florianreuth
florianreuth requested a review from a team as a code owner October 7, 2026 09:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Filling buckets bypasses build-height validation without an equivalent check in the fill handler.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Addresses #4832 by moving bucket protection checks to bucket-specific handlers, allowing fluid placement against plot walls and floors.

Changes:

  • Exempts water, lava, and empty buckets from generic interaction checks.
  • Adds build-height validation when emptying buckets.
File Description
Bukkit/​src/​main/​java/​com/​plotsquared/​bukkit/​listener/​PlayerEventListener.java Adjusts bucket interaction handling and emptying height checks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +1307 to +1308
case "WATER_BUCKET", "LAVA_BUCKET", "BUCKET" -> {
return;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need to confirm that this definitely isn't handled somewhere else (and adjust if it isn't)

@dordsor21 dordsor21 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please confirm the copilot comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to place water or lava against plot edges

3 participants