resolve NPE when calling Claim.allowEdit (#1580)
This commit is contained in:
parent
134729167b
commit
e6ce386bcf
|
|
@ -324,7 +324,8 @@ public class Claim
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String allowEdit(Player player)
|
public String allowEdit(Player player)
|
||||||
{
|
{
|
||||||
return checkPermission(player, ClaimPermission.Edit, null).get();
|
Supplier<String> supplier = checkPermission(player, ClaimPermission.Edit, null);
|
||||||
|
return supplier != null ? supplier.get() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Set<Material> PLACEABLE_FARMING_BLOCKS = EnumSet.of(
|
private static final Set<Material> PLACEABLE_FARMING_BLOCKS = EnumSet.of(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user