Fix USE flag being ignored for blocks considered built if used
RegionProtectionListener did not attach any flags for materials which fall under the isConsideredBuildingIfUsed category. Without this flag, the interaction would default to being denied, and changing the region USE flag did not change the behavior. This inlcuded interactions with the following materials: REPEATER, COMPARATOR, CAKE, DRAGON_EGG And the following tags: FLOWER_POTS, CANDLES, CANDLE_CAKES
This commit is contained in:
parent
0a9eb447d6
commit
d7b0efc3dd
|
@ -254,7 +254,7 @@ public class RegionProtectionListener extends AbstractListener {
|
|||
|
||||
/* Saplings, etc. */
|
||||
if (Materials.isConsideredBuildingIfUsed(type)) {
|
||||
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event));
|
||||
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.USE));
|
||||
what = "use that";
|
||||
|
||||
/* Inventory */
|
||||
|
|
Loading…
Reference in New Issue