Fix for making item frames invisible with diamonds
This commit is contained in:
parent
4776000c30
commit
3ba67d597d
|
|
@ -636,7 +636,7 @@ class PlayerEventHandler implements Listener
|
|||
}
|
||||
|
||||
//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);
|
||||
Supplier<String> stringSupplier = claim.checkPermission(player, ClaimPermission.Access, event);
|
||||
if (stringSupplier != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user