promotional bannermobile promotional banner

StockMarket Tweaks

Removes StockMarket's world-load stall and smooths its runtime cost in large mod packs — Adds JEI Quick Market Create
Back to Files

stockmarkettweaks-1.3.2.jar

File namestockmarkettweaks-1.3.2.jar
Uploader
Element1MElement1M
Uploaded
Nov 27, 2026
Downloads
11
Size
71.9 KB
Mod Loaders
NeoForge
File ID
9840958
Type
B
Beta
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:stockmarket-tweaks-1804354:9840958"

Learn more about Curse Maven

What's new

Update - 1.3.2

Build agaisnt 2.20 Stock Market & Bank System

-
**Create markets directly from JEI (`Shift + Right-Click`).** Admins can now `Shift + Right-Click`
  any hovered item in JEI's ingredient list or bookmarks to create a StockMarket immediately without
  using the built-in search picker, while keeping normal Right-Click ("Show Uses") intact. Shows a
  Shift-hover tooltip status (`Create StockMarket` / `Market already exists`) and prints creation
  status to chat so you can create multiple markets in a row. Completely optional (no dependency on
  JEI; toggleable via `jeiShiftRightClickCreateMarket`).
- **Fixed 2.2.0 depth-memory fade staggering (`VirtualOrderbookMixin`).** `fadeDepthMemory()` calls
  `initDepthMemory()` on every tick and relies on its early-return guard once initialised; injecting
  at `RETURN` overwrote `fadeClockSeconds` on every tick and broke fade accumulation. It now injects
  right after `fadeClockSeconds = 0.0` (`PUTFIELD`) so the phase is applied only on initialisation.
- **Added 2.2.0 ItemID sync invalidation hooks (`ItemIDManagerMixin`).** `ItemIdFastIndex` now also
  invalidates on BankSystem 2.2.0's `adoptMasterItem` and `dropShortsMissingFromFullSync` mutators
  (`require = 0` so 2.1.x stays unaffected).
- **Eliminated the item picker sort freeze on screen open.** ModUtilities' `TagSorter` rebuilt two
  tag sets and sorted/joined tag strings on every comparison when opening Management, Create
  Market, or Market Selector screens. It now caches each item's tag key once (identical sort order).
- **Eliminated O(M²) plain-item miss scans on new worlds.** `ItemIdFastIndex` now treats plain-item
  misses as definitive when the index is complete and in sync, turning BankSystem's initial
  `createDefaultItemIDs` pass from O(M²) to O(M).
- **Fixed Create Markets showing newly created markets as still creatable** for up to 2 s — the
  existing-markets cache now checks the live market-ID list and invalidates immediately when markets
  are created or removed.
- **Fixed UI lag on non-search actions & debouncer race.** Category switches, initial loads,
  Select All / Deselect All / Clear, and preset edits now run immediately instead of waiting for the
  150 ms search debounce; fixed a pending-task cancellation race and weak-referenced closed widgets.
- **Hardened `ItemIdFastIndex` and `ServerMarketManager` caching** against concurrent invalidation,
  mid-batch duplicate registration when `safeComponentScanOnMiss=false`, registry-access transitions,
  and torn reads from background threads.
- **Fixed stale client search caches** on language changes and world/server switches, normalised
  queries with `Locale.ROOT`, cached lowercased component tooltips, cleared `StartupTimings` across
  world reloads, and persisted newly added config keys when upgrading `config/stockmarkettweaks.json`.

This mod has no additional files