MrTJPCore Rescaled
A shared library used by ProjectRed Rescaled and other mods. This fork of MrTJPCore includes new features, bug fixes, and a migration to Cleanroom, Java 25, and Scala 3.
Requirements
- Cleanroom 0.7.14-alpha or newer
- Scalar 3.10.0 or newer
- CodeChicken Lib CRE 3.3.10 or newer
Changes
- Migrate to Cleanroom, Java 25, and Scala 3.
- Add JEI-compatible GUI integration. Nodes outside the main window count as GUI areas, preventing the item list from overlapping them and causing unintended interactions.
- Add the
MTBlockTile.readFromClienthook for tile actions sent by clients. - Respect slot insertion rules and stack limits when inserting items into inventories.
- Fix hidden-item counts, out-of-bounds slot access, and custom inventory wrapper registration.
- Copy NBT when creating
ItemKeyinstances so changes to the original data cannot alter existing keys. Fix hash calculation as well. - Track key states by UUID and clear them on logout, disconnection, and server shutdown. Fix synchronization between threads and handling of unknown tracker IDs.
- Validate client tile packets to prevent unauthorized state changes through description packets. Restrict actions to loaded blocks near the sender.
- Stop mouse input already handled by the GUI from reaching the backing container.
- Fix GUI centering on first display and after resizing, hidden-node handling, and the positions and hit regions of moved tabs.
- Correctly intersect nested GUI clipping regions and restore the previous clipping state after drawing, including when an exception occurs.
- Make item lists follow changes to their position and size, and prevent division by zero when collapsed.
- Fix textbox initial text and Enter and Backspace handling.
- Fix particle interpolation, final frames, previous positions, vector sharing between actions, and action removal.
- Fix world generation biome filters, tree canopy scanning positions, and decorator placement conditions.
- Fix duplicate retrogen requests, progress tracking across saves and retries, and handling of configuration changes and world unloads.
- Prevent block update hooks from forcing unloaded chunks to load.
- Fix block callbacks when tile entities are missing or their types are unregistered.
- Read and write empty configuration arrays while preserving their types.
- Fix enum set operations, rectangle intersection checks, rectangular grid coordinates, and least-significant bit position calculations.
- Support weighted random totals above the
Intlimit and reject invalid weights. - Fix delayed task ordering and overflow with extremely long delays.
Credits
- MrTJPCore: The original mod.
- MrTJPCore by kappa_maintainer: The first fork to migrate to Cleanroom, Java 25, and Scala 3.
- MrTJPCore by ACGaming: Contributed some of the bug fixes included in this fork.
- MrTJPCore by GTNHTeams: Contributed many of the bug fixes and performance patches included in this fork.