Skip to content

Fix/itemregistry nosuchfield - #6

Open
prawn666 wants to merge 2 commits into
Hermanoid:mainfrom
prawn666:fix/itemregistry-nosuchfield
Open

prawn666 wants to merge 2 commits into
Hermanoid:mainfrom
prawn666:fix/itemregistry-nosuchfield

Conversation

@prawn666

Copy link
Copy Markdown

No description provided.

rutaji and others added 2 commits July 9, 2026 16:29
Item.itemRegistry is renamed/removed by this modpack's coremods at
runtime, so RecipeDumpContext's static initializer threw
NoSuchFieldError as soon as a dump started. The exception was silently
swallowed by the worker thread's default uncaught exception handler,
so the dump looked like it was hanging: file created (0 bytes), one
placeholder -1/-1 progress tick, then nothing -- no crash, no log line.

- Use the stable public Forge API GameData.getItemRegistry() instead
  of the raw Item.itemRegistry field.
- Log dump failures properly (overall crash + per-item failures) so a
  single broken recipe handler no longer silently truncates the whole
  (multi-hour) dump.

Built and verified against GT_New_Horizons_2.8.4_Java_17-25 (the exact
dependency versions already updated in this fork): CodeChickenCore
1.4.10, NotEnoughItems 2.8.44-GTNH, Hodgepodge 2.6.112, GT5-Unofficial
5.09.51.482. Full 56028-recipe dump now completes normally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants