
MC-249136 Fix
A hacky fix for server lag spikes when generating shipwreck buried treasure map / explorer map loot.
Обновлён 9 декабря 2023 г. · опубликован 10 августа 2023 г.
NOTICEMC-249136 appears to have been fixed in newer versions of Minecraft! As such, I've decided not to update this mod for 1.20.5-onwards. If you still encounter problems with treasure maps in 1.20.5+, please create an issue to let me know! |
MC-249136 Fix
This mod implements a minimal hacky fix for MC-249136, a significant server lag spike that occurs when locating buried treasure structures for shipwreck loot.
To avoid this lag spike, structure location is moved into a separate thread that does not block the server tick loop. This does nothing to improve the structure location performance, but it does at least prevent it from significantly impeding gameplay.

Configuration
The map "loading" images can be customized by placing 128x128 PNG files in /config/mc249136/map_loading.png and /config/mc249136/map_not_found.png.
For performance reasons, these images will draw all pixels as black unless they are fully transparent (i.e. rgba(0,0,0,0)). Minecraft's map color palette is difficult and expensive to calculate - so this mod literally just does an if (rgb != 0) to draw the image.
Known issues:
- This mod does not handle state persistence, and only updates loaded maps once they are inside a player's inventory. This means that it is possible to prevent a treasure map from loading by breaking the chest, leaving it in item entity form, and then restarting the server.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 1.0.2 | Бета | 1.20.1, 1.20.2, 1.20.3, 1.20.4 | fabric, quilt | 9 декабря 2023 г. | .jar (23 КБ) |
| 1.0.1 | Бета | 1.19.4, 1.20, 1.20.1, 1.20.2 | fabric, quilt | 31 августа 2023 г. | .jar (19 КБ) |
| 1.0.0 | Альфа | 1.19.4, 1.20, 1.20.1 | fabric, quilt | 10 августа 2023 г. | .jar (16 КБ) |
Ченджлог
1.0.2Бета1.20.2, 1.20.3, 1.20.4 · 9 декабря 2023 г.
- Support for 1.20.4!
- Adds more intuitive loading / not found map images
- The loading map image can now be changed in
/config/mc249136- see the README for how to configure this!
1.0.1Бета1.20, 1.20.1, 1.20.2 · 31 августа 2023 г.
- Draws a "loading..." message on pending treasure maps
- Reduces idle impact on server performance
- Prevents possible corrupt map texture issues / race conditions
- Fixes support for 1.19-1.19.3
1.0.0Альфа1.19.4, 1.20, 1.20.1 · 10 августа 2023 г.
- Initial release
Полная история изменений — на Modrinth.
Комментарии
Загружаем…

