Skip to content

Commit

Permalink
Fix an error while trying to open the analyzer menu from the top part.
Browse files Browse the repository at this point in the history
  • Loading branch information
ReclipseTheOne committed Dec 20, 2024
1 parent c66a85c commit 5ad3af7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public BacterialAnalyzerTopBlock(Properties properties) {
@Override
protected InteractionResult useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) {
if (level.getBlockEntity(pos.below()) instanceof BacterialAnalyzerBlockEntity be) {
player.openMenu(be, pos);
player.openMenu(be, pos.below());
return InteractionResult.SUCCESS;
}
return super.useWithoutItem(state, level, pos, player, hitResult);
Expand Down

0 comments on commit 5ad3af7

Please sign in to comment.