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

Commit ff9b125

Browse files
author
SvenjaReißaus
committed
Not checking for physical stuff
1 parent 99f4815 commit ff9b125

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,6 @@ public void onClose(InventoryCloseEvent e) {
860860
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
861861
public void onPlayerInteract(PlayerInteractEvent event) {
862862
// only need to check right-clicks and physical as of MC 1.4+; good performance boost
863-
SavageFactions.plugin.log("Checking if the action is physical");
864-
if (event.getAction() == Action.PHYSICAL) return;
865863
SavageFactions.plugin.log("Checking if the action aren't left clicks");
866864
if (!event.getAction().equals(Action.LEFT_CLICK_BLOCK) || !event.getAction().equals(Action.LEFT_CLICK_AIR)) return;
867865
SavageFactions.plugin.log("Attempting to allow food and potis");

0 commit comments

Comments
 (0)