From 04f88f40095ca4d6a7ec19a25a89987a1f09feb6 Mon Sep 17 00:00:00 2001 From: Boy Date: Wed, 20 Sep 2023 16:59:43 +0200 Subject: [PATCH] release: 1.3.5 --- gradle.properties | 2 +- .../protectionlib/compatibilities/GriefPreventionCompat.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 1dbae1d..7f80bea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -pluginVersion=1.3.4 +pluginVersion=1.3.5 diff --git a/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java b/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java index 045f4de..9c7eb00 100644 --- a/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java +++ b/src/main/java/io/th0rgal/protectionlib/compatibilities/GriefPreventionCompat.java @@ -59,7 +59,7 @@ public boolean canUse(Player player, Location target) { private boolean checkPermission(Player player, Location target, ClaimPermission permission) { PlayerData playerData = GriefPrevention.instance.dataStore.getPlayerData(player.getUniqueId()); Claim claim = GriefPrevention.instance.dataStore.getClaimAt(target, false, playerData.lastClaim); - if (playerData.ignoreClaims) return true; + if (claim == null || playerData.ignoreClaims) return true; playerData.lastClaim = claim; return claim.checkPermission(player, permission, null) == null;