Список изменений
【中文更新日志】
2.9 版本更新 - 递归调用安全防护:
- 修复了自定义函数互相调用或自身调用自身时导致的栈溢出崩溃漏洞(StackOverflowError),该问题曾导致服务器崩溃甚至存档损坏。
- 新增递归调用检测机制,当检测到函数存在直接或间接的循环调用时,会抛出友好的“循环调用”错误提示,而非崩溃。
- 设定了最大递归深度限制(64 层),防止意外深度递归导致性能问题。
- 现在你可以安全地定义和测试自定义函数,即使不小心写出了递归调用,游戏也会优雅地给出错误提示而不会崩溃。
【English Changelog】
Version 2.9 - Recursive call protection:
- Fixed a critical crash vulnerability where custom functions calling themselves or mutually referencing each other would cause StackOverflowError, potentially crashing the server or corrupting saves.
- Added recursive call detection mechanism that throws a friendly "circular call" error when direct or indirect recursion is detected, instead of crashing.
- Implemented a maximum recursion depth limit (64 layers) to prevent performance issues from accidental deep recursion.
- You can now safely define and test custom functions – even if you accidentally write recursive calls, the game will gracefully display an error message instead of crashing.
Файлы
function_math-2.9-neoforge-1.21.1.jar(84.77 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.9
Загрузчики
NeoForge
Версии игры
1.21.1
Загрузок
85
Дата публикации
10.07.2026

