Fixed the elusive interact bug

This commit is contained in:
ProSavage 2019-01-18 18:38:46 -06:00
parent a47e06a34e
commit e1a1c630ad

View File

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