Allow null instead of throwing exception. Fixes #1008

This commit is contained in:
Trent Hensler 2018-01-20 16:50:38 -08:00
parent c465d0c9d4
commit 246b93bda9
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ public class FactionsBlockListener implements Listener {
}
}
Access access = otherFaction.getAccess(me, Action.valueOf(action));
Access access = otherFaction.getAccess(me, Action.fromString(action));
if (access != null && access != Access.UNDEFINED) {
// TODO: Update this once new access values are added other than just allow / deny.
return access == Access.ALLOW;