From e1a1c630adbeffc01537b1db39ffe35ff7261fb8 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Fri, 18 Jan 2019 18:38:46 -0600 Subject: [PATCH] Fixed the elusive interact bug --- .../factions/listeners/FactionsPlayerListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index 19c95b79..17c4eecb 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -286,6 +286,7 @@ public class FactionsPlayerListener implements Listener { case ANVIL: case CHIPPED_ANVIL: case DAMAGED_ANVIL: + case BREWING_STAND: action = PermissableAction.CONTAINER; break; default: @@ -312,7 +313,7 @@ public class FactionsPlayerListener implements Listener { boolean doTerritoryEnemyProtectedCheck = true; - if (action.equals(PermissableAction.CONTAINER) || + if (action != null && action.equals(PermissableAction.CONTAINER) || (action.equals(PermissableAction.DOOR))) { if (access == Access.ALLOW) { doTerritoryEnemyProtectedCheck = false;