Fix for making item frames invisible with diamonds
This commit is contained in:
1 parent
4776000c30
commit
3ba67d597d
1 file changed
+1
-1
@@ -636,7 +636,7 @@ class PlayerEventHandler implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
//don't allow interaction with item frames in claimed areas without container permission
|
//don't allow interaction with item frames in claimed areas without container permission
|
||||||
if (entity instanceof ItemFrame) {
|
if ((entity instanceof ItemFrame) && !player.getInventory().getItem(event.getHand()).getType().equals(Material.DIAMOND)) {
|
||||||
Claim claim = this.dataStore.getClaimAt(entity.getLocation(), false, playerData.lastClaim);
|
Claim claim = this.dataStore.getClaimAt(entity.getLocation(), false, playerData.lastClaim);
|
||||||
Supplier<String> stringSupplier = claim.checkPermission(player, ClaimPermission.Access, event);
|
Supplier<String> stringSupplier = claim.checkPermission(player, ClaimPermission.Access, event);
|
||||||
if (stringSupplier != null) {
|
if (stringSupplier != null) {
|
||||||
|
|||||||
Reference in new issue
Block a user