fix blockentity interaction not working

This commit is contained in:
Flemmli97 2021-12-27 18:59:38 +01:00
parent 3d1de55601
commit 5d2c753ef9

View File

@ -102,7 +102,7 @@ public class BlockInteractEvents {
PlayerClaimData.get(player).addDisplayClaim(claim, EnumDisplayType.MAIN, player.blockPosition().getY());
return InteractionResult.FAIL;
}
if (blockEntity != null && !player.isSecondaryUseActive() && !stack.isEmpty()) {
if (blockEntity != null && !(player.isSecondaryUseActive() && !stack.isEmpty())) {
if (blockEntity instanceof LecternBlockEntity) {
if (claim.canInteract(player, PermissionRegistry.LECTERNTAKE, hitResult.getBlockPos(), false))
return InteractionResult.PASS;