本模组的唯一目标是修复仅存在于 Minecraft 1.18 中的此 Bug:
该 Bug 表现为:在世界生成期间将包含 NBT 数据的建筑结构放置到世界中时,如果该结构替换了任何类型的方块实体(如刷怪笼、箱子、 lectern、床、告示牌等),可能导致游戏死锁。这……很糟糕。你的游戏会锁定并冻结,Tick 不再运行。
问题的根源在于用于在世界中放置建筑结构方块的方法并非世界生成安全。它在内部使用了错误的 World 对象。本模组通过一种简单的方式修复此 Bug:当传入 NBT 放置方法的 World 参数是 WorldGenRegion 类时,跳过对这些不安全方法的调用。更多详细信息请参阅上述 Bug 报告。
对于其他模组开发者而言,此 Bug 可能会更频繁地出现,因此建议将其作为预防措施保留安装。
此 Bug 不会出现在 1.17.x 及更低版本中。它在 1.19 及以上版本中已被修复。它似乎仅存在于 1.18.x 版本中。
MOD 开发者:
要在开发环境中使用,请在 build.gradle 的 repositories 块中添加以下内容:
maven {
// FeatureNBTDeadlockBeGone
url "https://nexus.resourcefulbees.com/repository/maven-public/"
}
然后在 build.gradle 的 dependencies 块中添加:
FORGE:
`runtimeOnly fg.deobf("com.telepathicgrunt:FeatureNBTDeadlockBeGone-Forge:2.0.0+1.18.2")`
FABRIC:
`modRuntimeOnly "com.telepathicgrunt:FeatureNBTDeadlockBeGone-Fabric:2.0.0+1.18.2"`
QUILT:
`modRuntimeOnly "com.telepathicgrunt:FeatureNBTDeadlockBeGone-Quilt:2.0.0+1.18.2"`
请将 2.0.0+1.18.2 更改为你需要的版本号。
This mod's sole goal is to fix this bug that only exists for 1.18 MC:
The bug is when placing NBT builds into the world during worldgen, it can deadlock the game if the build is replacing a BlockEntity of any kind. Spawners, chests, lecterns, beds, signs, etc. Which is... bad. Your game locks up and freezes. Ticks are no longer being run.
The issue comes down to the fact that the method used to place build's blocks in the world is not worldgen safe. It is using the wrong world object inside. The way this mod fixes the bug is by simply skipping the calls to those unsafe methods if the world passed into the nbt placing method is a WorldGenRegion class. More info and in-depth detail is in the bug report above.
For mods, this bug may occur more often which is why it may be a good idea to just have this mod on as a precaution.
This bug does not occur in 1.17.x and below. It is fixed in 1.19 and above. It seems to only exist in 1.18.x.
MOD DEVERLOPERS:
To use in dev, add this to the repositories block in build.gradle:
maven {
// FeatureNBTDeadlockBeGone
url "https://nexus.resourcefulbees.com/repository/maven-public/"
}
Then in dependencies block in build.gradle, add:
FORGE:
runtimeOnly fg.deobf("com.telepathicgrunt:FeatureNBTDeadlockBeGone-Forge:2.0.0+1.18.2")
FABRIC:
modRuntimeOnly "com.telepathicgrunt:FeatureNBTDeadlockBeGone-Fabric:2.0.0+1.18.2"
QUILT:
modRuntimeOnly "com.telepathicgrunt:FeatureNBTDeadlockBeGone-Quilt:2.0.0+1.18.2"
Change 2.0.0+1.18.2 to the version you want.
下载 Feature NBT Deadlock Be Gone
下载 Feature NBT Deadlock Be Gone
下载 Feature NBT Deadlock Be Gone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Feature NBT Deadlock Be Gone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Feature NBT Deadlock Be Gone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Feature NBT Deadlock Be Gone
(V.2.0.0 更新内容) (Minecraft 1.18.2)
其他:
移植至 Quilt 加载器
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
原版世界生成优化模组
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
评论 0
登录后参与评分
还没有评论,来抢沙发吧