From ff9b125426887438230e41ca6bcb6f820d0e78de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SvenjaRei=C3=9Faus?= Date: Mon, 18 Mar 2019 21:34:13 -0500 Subject: [PATCH] Not checking for physical stuff --- .../massivecraft/factions/listeners/FactionsPlayerListener.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index 78757a24..425338d1 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -860,8 +860,6 @@ public class FactionsPlayerListener implements Listener { @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onPlayerInteract(PlayerInteractEvent event) { // only need to check right-clicks and physical as of MC 1.4+; good performance boost - SavageFactions.plugin.log("Checking if the action is physical"); - if (event.getAction() == Action.PHYSICAL) return; SavageFactions.plugin.log("Checking if the action aren't left clicks"); if (!event.getAction().equals(Action.LEFT_CLICK_BLOCK) || !event.getAction().equals(Action.LEFT_CLICK_AIR)) return; SavageFactions.plugin.log("Attempting to allow food and potis");