Skip to content

Commit

Permalink
fix: GriefDefender API null check
Browse files Browse the repository at this point in the history
  • Loading branch information
NCT-skyouo committed Sep 22, 2022
1 parent 8398fe7 commit 5f79cd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public static boolean checkSoftDependPlugins(){
} catch (Exception e) {
logger.warning("GriefDefender plugin is not found, will not support GriefDefender's features!");

if (readonlyConfig.griefDefenderStrictCheck){
if (readonlyConfig.griefDefenderStrictCheck) {
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public static boolean isGriefPrevention(Location location){
}

public static boolean isGriefDefender(Location location){
if (griefDefenderAPI == null)
return false;

Chunk chunk = location.getChunk();
List<UUID> claimUUIDList = new ArrayList<>();
for (int x = 0; x < 16; x++) {
Expand Down

0 comments on commit 5f79cd6

Please sign in to comment.