
CobbleStacker
CobbleStacker is a server-side Fabric mod that reduces lag by automatically merging nearby identical mobs, ground items, and spawners into a single entity with a stack counter, fully compatible with Cobblemon.
587
2
Список изменений
Bug fix — Watchdog crash (ItemStackManager.java):
- processAutoClear and forceClear were calling item.discard() while iterating level.getAllEntities() (a live iterable), causing a ConcurrentModificationException that froze the server thread. Both methods now collect entities into a toRemove list first, then discard after iteration.
Feature — Mob nametag visibility distance (3 files):
- ModConfig.java: Added mobNametagVisibleDistance (default 0 = always visible, like current behavior). Set it to e.g. 32 to only show nametags within 32 blocks.
- MobStackManager.java:
- updateNametag no longer forces setCustomNameVisible(true) when distance mode is active
- New updateNametagVisibility(server) method checks each stacked mob against all players in the level and toggles visibility based on squared distance
- CobbleStackerMod.java: Calls updateNametagVisibility every 10 ticks (0.5s) when distance mode is enabled
Файлы
CobbleStacker-NeoForge-1.0.0.jar(63.67 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.0
Загрузчики
NeoForge
Версии игры
1.21.1
Загрузок
4
Дата публикации
1 нед. назад