Skip to content

Protect cushion placement through existing item handling - #2318

Open
strobil wants to merge 5 commits into
EngineHub:version/7.0.xfrom
strobil:fix/cushion-placement-2317
Open

strobil wants to merge 5 commits into
EngineHub:version/7.0.xfrom
strobil:fix/cushion-placement-2317

Conversation

@strobil

@strobil strobil commented Oct 19, 2026 •

Copy link
Copy Markdown

Players without build access can place cushions in protected regions on Minecraft 26.3.

Add cushions to handleBlockRightClick, alongside the existing boat and armor-stand handling. The new branch uses Materials.isCushion() and passes EntityType.CUSHION through the same SpawnEntityEvent protection path, using the existing placement-position calculation. The helper mirrors Materials.isBoat() and checks Tag.ITEMS_CUSHIONS to cover all colors.

Only the cushion branch and its material helper are added. Existing handlers and other entity placement checks are unchanged.

Fixes #2317.

Validation

  • ./gradlew build on Java 25: passed, including Checkstyle and all 177 existing tests.
  • Verified that Minecraft 26.3's minecraft:cushions item tag includes all 16 cushion colors.
  • git diff --check: passed.
  • No live in-game test was performed; placement on partial blocks has not been validated in-game.

@strobil strobil changed the title Protect cushion placement in claimed regions Check player entity placement through EntityPlaceEvent Oct 19, 2026
@strobil strobil changed the title Check player entity placement through EntityPlaceEvent Protect cushion placement through existing item handling Oct 19, 2026
@strobil
strobil changed the base branch from version/7.0.x to master October 20, 2026 23:29
@strobil
strobil changed the base branch from master to version/7.0.x October 20, 2026 23:31
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.

Players can place cushions in other players' protected regions on Minecraft 26.3 (WorldGuard 7.0.20)

1 participant