Fixed the elusive interact bug
This commit is contained in:
parent
a47e06a34e
commit
e1a1c630ad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user