Dog armour can be broken by players inside claims
baailey opened this issue ยท 3 comments
WorldEdit Version
7.3.5-SNAPSHOT+6844
WorldGuard Version
7.0.11-SNAPSHOT+2274
Platform Version
Paper version 1.20.6-148
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using a version of WorldGuard compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
When a dog is inside a claim with armour applied, a random player is able to go up to the dog and punch it to break the armour.
Expected Behavior
For the armour durability to remain untouched when a player attempts to hit the dog
Reproduction Steps
- Tame a dog
- Place it inside a claim
- Have a user try punch the armour
Optional WorldGuard-Report
No response
Anything Else?
Seems like a valid issue.
Looking at the code we would probably have to catch PlayerItemDamageEvent or EntityDamageItemEvent, since there isn't a specific event for wolf armor damage yet, or wait for upstream Paper/Spigot to add a specific event for that (see also https://hub.spigotmc.org/jira/browse/SPIGOT-7815 and PaperMC/Paper#10978)