mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-05 14:21:36 +01:00
Fastest return first.
This commit is contained in:
parent
5c3f79c09d
commit
28a28b2e54
@ -63,11 +63,15 @@ public class BlockInteractListener extends CheckListener {
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
if (event.getClickedBlock() == null || event.getAction() != Action.LEFT_CLICK_BLOCK
|
||||
&& event.getAction() != Action.RIGHT_CLICK_BLOCK)
|
||||
return;
|
||||
if (event.getAction() != Action.LEFT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_BLOCK){
|
||||
return;
|
||||
}
|
||||
|
||||
final Block block = event.getClickedBlock();
|
||||
|
||||
if (block == null){
|
||||
return;
|
||||
}
|
||||
|
||||
boolean cancelled = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user