From 2fffd624d4d672232f1486f78ad377f9b296ad87 Mon Sep 17 00:00:00 2001 From: Colinxu2020 <63941938+colinxu2020@users.noreply.github.com> Date: Thu, 31 Oct 2024 21:16:57 +0800 Subject: [PATCH] Update CompactMachineBlock.java --- .../dev/compactmods/machines/machine/CompactMachineBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/compactmods/machines/machine/CompactMachineBlock.java b/src/main/java/dev/compactmods/machines/machine/CompactMachineBlock.java index df2631f4..474acbca 100644 --- a/src/main/java/dev/compactmods/machines/machine/CompactMachineBlock.java +++ b/src/main/java/dev/compactmods/machines/machine/CompactMachineBlock.java @@ -188,7 +188,7 @@ public void setPlacedBy(Level worldIn, BlockPos pos, BlockState state, @Nullable @SuppressWarnings("deprecation") public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand handIn, BlockHitResult hit) { if (level.isClientSide()) - return InteractionResult.SUCCESS; + return InteractionResult.PASS; MinecraftServer server = level.getServer(); ItemStack mainItem = player.getMainHandItem(); @@ -287,7 +287,7 @@ public InteractionResult use(BlockState state, Level level, BlockPos pos, Player } } - return InteractionResult.SUCCESS; + return InteractionResult.PASS; } private void createAndEnterRoom(Player player, MinecraftServer server, CompactMachineBlockEntity tile) {