MrTJPCore Rescaled

MrTJPCore for Cleanroom / Java25 + Scala3

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

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.readFromClient hook 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 ItemKey instances 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 Int limit and reject invalid weights.
  • Fix delayed task ordering and overflow with extremely long delays.

Credits

MrTJPCore Rescaled Team

profile avatar
Owner
Forgeborn tier icon
  • 8
    Followers
  • 8
    Projects
  • 184.4K
    Downloads

:thinking:

More from pepelysView all