Feature NBT Deadlock Be Gone
Fixes deadlocks caused by https://bugs.mojang.com/browse/MC-246262
Обновлён 21 апреля 2022 г. · опубликован 25 декабря 2021 г.
This mod's sole goal is to fix this bug that only exists for 1.18 MC: https://bugs.mojang.com/browse/MC-246262
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.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 2.0.0+1.18.2_quilt | Релиз | 1.18.2 | quilt | 21 апреля 2022 г. | .jar (16 КБ) |
| 2.0.0+1.18.2_forge | Релиз | 1.18.2 | forge | 2 марта 2022 г. | .jar (14 КБ) |
| 2.0.0+1.18.2-rc1_fabric | Релиз | 1.18.2 | fabric | 27 февраля 2022 г. | .jar (16 КБ) |
| 1.0.1+1.18.1_fabric | Релиз | 1.18.1 | fabric | 22 января 2022 г. | .jar (16 КБ) |
| 1.0.0+1.18.1_fabric | Релиз | 1.18.1 | fabric | 25 декабря 2021 г. | .jar (16 КБ) |
| 1.0.0+1.18.1_forge | Релиз | 1.18.1 | forge | 25 декабря 2021 г. | .jar (14 КБ) |
Ченджлог
2.0.0+1.18.2_quiltРелиз1.18.2 · 21 апреля 2022 г.
(V.2.0.0 Changes) (1.18.2 Minecraft)
Misc:
Ported to Quilt mod loader
2.0.0+1.18.2_forgeРелиз1.18.2 · 2 марта 2022 г.
(V.1.0.0 Changes) (1.18.1 Minecraft)
Misc:
First release.
2.0.0+1.18.2-rc1_fabricРелиз1.18.2 · 27 февраля 2022 г.
(V.2.0.0 Changes) (1.18.2 Minecraft)
Misc:
Updated to 1.18.2
(V.1.0.1 Changes) (1.18.1 Minecraft)
Misc:
Fixed versioning being incorrect
(V.1.0.0 Changes) (1.18.1 Minecraft)
Misc:
First release.
1.0.1+1.18.1_fabricРелиз1.18.1 · 22 января 2022 г.
(V.1.0.1 Changes) (1.18.1 Minecraft)
Misc:
Fixed versioning being incorrect
(V.1.0.0 Changes) (1.18.1 Minecraft)
Misc:
First release.
1.0.0+1.18.1_fabricРелиз1.18.1 · 25 декабря 2021 г.
(V.1.0.0 Changes) (1.18.1 Minecraft)
Misc:
First release.
1.0.0+1.18.1_forgeРелиз1.18.1 · 25 декабря 2021 г.
(V.1.0.0 Changes) (1.18.1 Minecraft)
Misc:
First release.
Полная история изменений — на Modrinth.
Комментарии
Загружаем…