Include GLOW_ITEM_FRAME in item-frame-rotation flag.

Closes #1832.
This commit is contained in:
wizjany 2021-09-13 18:57:33 -04:00
parent cb69ab73a7
commit 5b0fdb6801
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,8 @@ public class RegionProtectionListener extends AbstractListener {
what = "use that";
/* Paintings, item frames, etc. */
} else if (Entities.isConsideredBuildingIfUsed(entity)) {
if (type == EntityType.ITEM_FRAME && event.getCause().getFirstPlayer() != null
if ((type == EntityType.ITEM_FRAME || type == EntityType.GLOW_ITEM_FRAME)
&& event.getCause().getFirstPlayer() != null
&& ((ItemFrame) entity).getItem().getType() != Material.AIR) {
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.ITEM_FRAME_ROTATE));
what = "change that";