Action non physicals
This commit is contained in:
parent
8834371931
commit
99f4815fa8
@ -861,7 +861,7 @@ public class FactionsPlayerListener implements Listener {
|
||||
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;
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user