本帖最后由 山冰之冰 于 2021-8-24 08:27 编辑

本文原发于 B站,同样是我写的。
Minecraft 我的世界 1.17.1 Fabric 的 REI 模组有个 BUG:有时会突然的卡住,进行不了任何操作,按 E 或 Esc 会把鼠标指针卡出来,但摁其他的键都没有任何的反应,仿佛键盘鼠标失灵了一样。
我在 REI 的 Github 仓库下发现了这样一条 Issue,是 ReplayMod 的开发者 Johni0702 回复的。
Johni0702: This is because ReplayMod creates a Screen instance for internal use (mostly for convenience) which was never meant to be actually displayed. But that's what is happening here:REI gets hold of the RM-internal Screen via the init event and stores it as the previous screen (here), even though it was never displayed (RM only calls Screen.init, never MC.setScreen), and then when the REI screen gets closed, it restores the RM-internal Screen which causes the game to freeze (it's not actually frozen, it's just a blank screen which does not react to keyboard inputs).I do intent to get rid of that internal screen eventually, though it might be some time before that happens and it's probably a good idea anyway for REI to also check if the Screen being initialized is actually the current screen.
他解释了这个问题,REI 导致的屏幕冻结问题是和 Replay 模组的一个冲突,这是由于 RM 模组创建了一个屏幕快照(为了方便),而 REI 误将屏幕快照取用,导致游戏无法接受任何输入。
所以我便去了 ReplayMod 的 Discord 里寻找解决办法,找到了 Johni0702 的一条发言。
Known compatibility issue between RM and REI, there's a way to work around this one but there's another issue which will effectively freeze your game when you close any REI recipe/usage screen, so I'd recommend not using them together until RM 2.6.1 (which includes workarounds for both) or a new REI (which would fix the freezing issue)
他说没有其他的解决办法,只能暂时停用其中一个模组,或者等待未来版本的修复。
难受呀!😫只好忍痛停用 REI。

2021-8-23 更新
ReplayMod V2.6.1 全新出炉,在更新日志👇中我们可以看到,和 REI 的冲突已经被修复啦!REI 继续用起来!
- Fix pumpkin overlay showing even when not spectating (#546)
- Fix advanced screenshot GUI not opening on 1.17.1 (#559)
- Fix soft-lock when REI screen is closed (#560)
- Fix replays becoming inaccessible when render queue uses chroma key (#564)
- Fix .no_recover files never being cleaned up (#497)
- Fix nametags not rendering in screenhots (#498)
- Fix crash at start with REI (#501)
- Fix crash at start with MainMenuScale (#473)
顶一下自己的贴子~
更新之后真的好用多了!!