last_one_core-1.4.11
Curse Maven Snippet
What's new
1.4.11
- Fix a server tick crash caused by Confluence's summon damage/heal indicators overflowing PortLib's packet limit. Whenever a single level tick records more than 4096 indicators,
InfoData#tickstill packs them into oneSummonerBatchedInfoPayload, whose codec declares both lists withPortByteBufCodecs.list(4096); PortLib'sPortByteBufCodecs#writeCountthen throwsio.netty.handler.codec.EncoderException: <n> elements exceeded max size of: 4096inside the post-level-tick event, which kills the server tick loop and therefore the whole game in single player. (Upgrading PortLib does not help: 1.3.1 still throws oncount > maxSize, and the 4096 comes from Confluence's own payload codec.) A mixin onInfoData#ticknow trims both lists before the payload is built, with a second independent guard on the packet right before it is distributed; both injection points are required, so a Confluence update that breaks either one fails at startup instead of silently leaving the crash in place. The trim only affects the floating numbers and texts; damage and healing are already resolved by the time an indicator is recorded. Toggle:summonerInfoSyncFix.enabled(default on). - Add
summonerInfoSyncFix.maxNumbersPerTick(default512) andmaxTextsPerTick(default128) to cap how many indicators are sent per tick. Both are bounded to 0–4096, so no configured value can re-cross PortLib's limit;0hides that kind of indicator completely, trimming the lists to empty and skipping the packet instead of sending an empty batch. Nothing happens when Confluence is absent, disabling the section restores Confluence's exact original behaviour, and deliberately hiding an indicator does not spam the overflow warning.
This mod has no additional files