From 09673dd118511345d7e8b970a1dd744ef491198a Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sat, 9 Mar 2024 17:51:11 +0100 Subject: [PATCH] Fix right clicking the coffee maker being wonky --- .../actuallyadditions/mod/blocks/BlockCoffeeMachine.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCoffeeMachine.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCoffeeMachine.java index 622f24b00..b344c5e0b 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCoffeeMachine.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCoffeeMachine.java @@ -35,16 +35,17 @@ public class BlockCoffeeMachine extends DirectionalBlock.Container { @Override public InteractionResult use(BlockState state, Level world, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) { - if (!world.isClientSide) { + if (world.isClientSide) { + return InteractionResult.SUCCESS; + } else { TileEntityCoffeeMachine tile = (TileEntityCoffeeMachine) world.getBlockEntity(pos); if (tile != null) { if (!this.tryUseItemOnTank(player, hand, tile.tank)) { player.openMenu(tile, pos); } } - return InteractionResult.PASS; + return InteractionResult.CONSUME; } - return super.use(state, world, pos, player, hand, hit); } @Nullable