mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 23:27:35 +01:00
Resolves WORLDGUARD-2352 Anvils usable despite the use flag
This commit is contained in:
parent
0b3c40dc3e
commit
8593f1c80a
@ -216,7 +216,7 @@ public void onPlayerMove(PlayerMoveEvent event) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerGameModeChange(PlayerGameModeChangeEvent event) {
|
||||
@ -694,7 +694,8 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
||||
|| type == BlockID.BREWING_STAND
|
||||
|| type == BlockID.ENCHANTMENT_TABLE
|
||||
|| type == BlockID.CAULDRON
|
||||
|| type == BlockID.BEACON) {
|
||||
|| type == BlockID.BEACON
|
||||
|| type == BlockID.ANVIL) {
|
||||
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||
&& !set.canBuild(localPlayer)
|
||||
&& !set.allows(DefaultFlag.USE, localPlayer)) {
|
||||
|
Loading…
Reference in New Issue
Block a user