File Details
V1.2.2
- R
- Sep 30, 2023
- 360.51 KB
- 9.7K
- 1.7.10
- Forge
File Name
IvToolkit-1.2.2.jar
Supported Versions
- 1.7.10
Curse Maven Snippet
// Fixes
Fix crash when exporting large structures due to buffer overflow from recurrent complex
// Optimizations
Optimised block data packing algorithm
The block data packing routine was rewritten to use a ByteBuffer instead of a direct byte array. This has the following benefits:
The buffer size is correctly calculated based on the data length instead of using a fixed max size
Data is written incrementally to the buffer to avoid out of memory issues
No risk of buffer overflows thanks to ByteBuffer's automatic size management
Packing result is retrieved into a final byte array once complete
This resolves the ArrayIndexOutOfBounds exceptions occurring for very large block collections and improves the robustness and efficiency of the packing.