跳到正文

ComputerCraft Pastebin Patch

作者:Tomodachi94

Fix the `pastebin` program on legacy versions of ComputerCraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

ComputerCraft patch for Pastebin

This fixes Pastebin on legacy versions of ComputerCraft.

This resource pack has been confirmed to work on Tekkit main.

The problem

When executing pastebin get or pastebin put, the program tries to access http://pastebin.com. This fails due to the http part.

Additionally, Pastebin has started requiring a User-Agent header for all requests.

The solution

The fix is really simple: Replace http with https, and include a User-Agent header with all requests. This restores standard functionality.

A quick caveat: versions of ComputerCraft before 1.63 did not support specifying headers with HTTP requests. Those versions will remain broken unless the mod itself is patched.

Credits and licensing

Two people have made videos and tutorials explaining the problem and showing how to fix it by modifying ComputerCraft directly:

This is a “trivial change,” so this goes under the ComputerCraft Public License, the same license as ComputerCraft.

常见问题

ComputerCraft Pastebin Patch 支持哪些 Minecraft 版本?

ComputerCraft Pastebin Patch 支持 Minecraft Java 版 1.6.1–1.12.2,共 36 个版本。下载时注意选择和你游戏版本一致的文件。

ComputerCraft Pastebin Patch 怎么安装?

把下载的 .zip 文件(不用解压)放进游戏目录的 resourcepacks 文件夹,进游戏后在「选项 → 资源包」里把它移到右边启用。

评论

登录后评论和评分

Tomodachi94 的其他作品

查看全部 →