mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-25 17:41:50 +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)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onTakeLecternBook(PlayerTakeLecternBookEvent event) {
|
public void onTakeLecternBook(PlayerTakeLecternBookEvent event) {
|
||||||
final UseBlockEvent useEvent = new UseBlockEvent(event, create(event.getPlayer()), event.getLectern().getBlock());
|
final UseBlockEvent useEvent = new UseBlockEvent(event, create(event.getPlayer()), event.getLectern().getBlock());
|
||||||
useEvent.getRelevantFlags().add(Flags.CHEST_ACCESS);
|
|
||||||
Events.fireToCancel(event, useEvent);
|
Events.fireToCancel(event, useEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user