Poplar boats are not treated as vehicles: vehicle-place and vehicle-destroy do not apply

Open Beginner friendly
#2,334 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
backend

Research direction

Read worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Entities.java, especially isBoat and isVehicle. Check the relevant entity and vehicle flag tests, then verify poplar boats are recognized and existing boat behavior remains covered. Done when vehicle-place and vehicle-destroy apply to poplar boats as described.

Written by the indexing model from the issue text.

Description

Entities.isBoat(EntityType) (worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Entities.java, lines 121-129 on master) is a fixed list of boat types that does not include Minecraft 26.3's POPLAR_BOAT and POPLAR_CHEST_BOAT.

Because isVehicle depends on it, the vehicle-place and vehicle-destroy flags never apply to poplar boats: placing or breaking one is checked as an ordinary build action, and damaging one is checked against interact. With vehicle-place allow or vehicle-destroy allow set on a region, a non-member can place or break an oak boat but not a poplar boat.

The list is unchanged on master (578e8023) and on version/7.0.x (59e136a5). Tested on Paper 26.3 build 256.

Suggestion: classify by the entity class (Boat.class.isAssignableFrom(type.getEntityClass())), which covers both poplar types and any future boat.

Dominant language
Java
Stars
944
Forks
686
Avg merge
4d 7h
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EngineHub/WorldGuard

All issues in EngineHub/WorldGuard

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.