From 5d2c753ef9dabc2b01fb6551f02d20840e431026 Mon Sep 17 00:00:00 2001 From: Flemmli97 Date: Mon, 27 Dec 2021 18:59:38 +0100 Subject: [PATCH] fix blockentity interaction not working --- .../io/github/flemmli97/flan/event/BlockInteractEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/io/github/flemmli97/flan/event/BlockInteractEvents.java b/common/src/main/java/io/github/flemmli97/flan/event/BlockInteractEvents.java index 12f7b19..71e3ebe 100644 --- a/common/src/main/java/io/github/flemmli97/flan/event/BlockInteractEvents.java +++ b/common/src/main/java/io/github/flemmli97/flan/event/BlockInteractEvents.java @@ -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;