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 ANVIL:
|
||||||
case CHIPPED_ANVIL:
|
case CHIPPED_ANVIL:
|
||||||
case DAMAGED_ANVIL:
|
case DAMAGED_ANVIL:
|
||||||
|
case BREWING_STAND:
|
||||||
action = PermissableAction.CONTAINER;
|
action = PermissableAction.CONTAINER;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -312,7 +313,7 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
boolean doTerritoryEnemyProtectedCheck = true;
|
boolean doTerritoryEnemyProtectedCheck = true;
|
||||||
|
|
||||||
|
|
||||||
if (action.equals(PermissableAction.CONTAINER) ||
|
if (action != null && action.equals(PermissableAction.CONTAINER) ||
|
||||||
(action.equals(PermissableAction.DOOR))) {
|
(action.equals(PermissableAction.DOOR))) {
|
||||||
if (access == Access.ALLOW) {
|
if (access == Access.ALLOW) {
|
||||||
doTerritoryEnemyProtectedCheck = false;
|
doTerritoryEnemyProtectedCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user