File Details
torneybook-1.0.4.jar
- R
- Mar 4, 2026
- 38.10 KB
- 82
- 1.21.1
- Fabric
File Name
torneybook-1.0.4.jar
Supported Versions
- 1.21.1
Curse Maven Snippet
TorneyBook 1.0.4 – Editor Improvements, UI & Security Fixes
Changes:
-
Server-side validation: NBT payloads from clients are strictly validated. Only safe DTOs with URL, page, X/Y coordinates, and width/height are allowed. Maximum 10 images per book, URL length ≤ 255, coordinates and sizes ≤ 1000.
-
Safe image downloading: Images are validated before download. URLs are restricted to http/https and blocked from local/private networks (localhost, 127.0.0.1, 192.168., 10., etc.).
-
Download limits: Maximum image size 5 MB, maximum resolution 2048×2048 pixels.
-
Threading improvements: Image downloads now use a fixed thread pool instead of the global ForkJoinPool, preventing thread starvation and freezes.
-
Caching system: Images are cached locally in
.minecraft/torneybook_cacheto reduce repeated network requests and improve performance. -
Memory & VRAM safety: Async image loading checks that the image is still needed before registering textures, preventing memory leaks and OutOfMemoryErrors.
-
UI bug fixes: Fixed issues where images would slightly shift after placement or after finishing editing. Images now remain correctly positioned regardless of screen resolution or GUI scale (works at scale 1, 2, 3, or auto).
-
New Image Editor: Complete redesign of the image editing interface.
-
To modify an image: navigate to the page containing the image, check the preview window — the image must be highlighted in green. If it isn’t, click “Next” until the correct image is selected, then apply changes.
-
-
10-image limit UX improvement: Adding more than 10 images no longer kicks the player. Extra images are ignored, and a warning message is shown instead.
-
Error handling: All download, processing, and rendering errors are safely caught and logged without crashing the client or server.
-
General improvements: Drag & drop positioning, scroll-to-resize, per-page images, and read mode fully preserved.
Notes:
-
Internet connection required for new image downloads.
-
Cached images persist between sessions.
-
Large images or unsupported formats are rejected gracefully.

