skeletons arrow knock items out of item frames
LadyCailinBot opened this issue ยท 4 comments
WORLDGUARD-3717 - Reported by ironic_8b49
Just noticed skeleton arrow can knock items out of item frame in protected regions. I have tested with players and they can not if they are not an owner or member of region. I updated to worldguard-legacy-6.1.3-SNAPSHOT-dist-#1679 and worldedit-bukkit-6.1.4-SNAPSHOT-dist-#3572 to see if that would fix it. no luck. is it a wrong use of a flag? or a bug?
Comment by wizjany
this is actually "intended" behavior right now. entities and blocks are considered members of the regions they are in.
that said, we should possibly check based on the player they are targeting instead of the skeleton itself...
Comment by wizjany
i'm not sure exactly what the issue is right now.
can you give reproduction steps?
atm if a skeleton is targeting a player and shoots and item frame (i.e. the arrow missed the player and hit an item frame), the item frame is correctly protected as if the player had been the one to break it. the same applies to creeper explosions, etc.
now, if you are trying to prevent any item frame destruction, not just player-caused, you need to set entity-item-frame-destroy to deny, since that's completely unrelated to players. (although i am unsure how a skeleton would be shooting arrows at item frames without the intervention of a player to target)