Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 2437e20

Browse files
author
SvenjaReißaus
committedMar 19, 2019
Catching right clicks instead of lefts
1 parent 35b5724 commit 2437e20

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
 
-1 Bytes
Binary file not shown.

‎src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ public void onClose(InventoryCloseEvent e) {
862862
public void onPlayerInteract(PlayerInteractEvent event) {
863863
// only need to check right-clicks and physical as of MC 1.4+; good performance boost
864864
SavageFactions.plugin.log("Checking if the action aren't left clicks");
865-
if (!event.getAction().equals(Action.LEFT_CLICK_BLOCK) || !event.getAction().equals(Action.LEFT_CLICK_AIR)) return;
865+
if (event.getAction().equals(Action.LEFT_CLICK_BLOCK) || event.getAction().equals(Action.LEFT_CLICK_AIR)) return;
866866
SavageFactions.plugin.log("Attempting to allow food and potis");
867867
if (event.getPlayer().getItemInHand() != null) {
868868
Material handItem = event.getPlayer().getItemInHand().getType();

0 commit comments

Comments
 (0)
This repository has been archived.