Not checking for physical stuff

This commit is contained in:
SvenjaReißaus 2019-03-18 21:34:13 -05:00
parent 99f4815fa8
commit ff9b125426
No known key found for this signature in database
GPG Key ID: E5494A03FA36D54B

View File

@ -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");