Skip to content

Protect cushion placement through existing item handling - #2318

Merged
me4502 merged 5 commits into
EngineHub:version/7.0.xfrom
strobil:fix/cushion-placement-2317
Oct 22, 2026
Merged

me4502 merged 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
Contributor

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

@me4502 me4502 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.

Thanks for the PR :)

@me4502
me4502 merged commit cb77add into EngineHub:version/7.0.x Oct 22, 2026
2 checks passed
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)

2 participants