Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit e1a1c63

Browse files
committed
Fixed the elusive interact bug
1 parent a47e06a commit e1a1c63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ public static boolean canPlayerUseBlock(Player player, Block block, boolean just
286286
case ANVIL:
287287
case CHIPPED_ANVIL:
288288
case DAMAGED_ANVIL:
289+
case BREWING_STAND:
289290
action = PermissableAction.CONTAINER;
290291
break;
291292
default:
@@ -312,7 +313,7 @@ public static boolean canPlayerUseBlock(Player player, Block block, boolean just
312313
boolean doTerritoryEnemyProtectedCheck = true;
313314

314315

315-
if (action.equals(PermissableAction.CONTAINER) ||
316+
if (action != null && action.equals(PermissableAction.CONTAINER) ||
316317
(action.equals(PermissableAction.DOOR))) {
317318
if (access == Access.ALLOW) {
318319
doTerritoryEnemyProtectedCheck = false;

0 commit comments

Comments
 (0)