Allow null instead of throwing exception. Fixes #1008
This commit is contained in:
parent
c465d0c9d4
commit
246b93bda9
@ -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) {
|
if (access != null && access != Access.UNDEFINED) {
|
||||||
// TODO: Update this once new access values are added other than just allow / deny.
|
// TODO: Update this once new access values are added other than just allow / deny.
|
||||||
return access == Access.ALLOW;
|
return access == Access.ALLOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user