mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-10 18:37:39 +01:00
Removed unnecessary relevant flag as it's checked by the UseBlockEvent listener
This commit is contained in:
parent
5ec3ed6092
commit
e54235a65e
@ -1084,7 +1084,6 @@ public void onBlockExplode(BlockExplodeEvent event) {
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onTakeLecternBook(PlayerTakeLecternBookEvent event) {
|
||||
final UseBlockEvent useEvent = new UseBlockEvent(event, create(event.getPlayer()), event.getLectern().getBlock());
|
||||
useEvent.getRelevantFlags().add(Flags.CHEST_ACCESS);
|
||||
Events.fireToCancel(event, useEvent);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user