Skip to content

Fix missing textures for aspects added by Integrated Dynamics Compat - #1797

Merged
rubensworks merged 1 commit into
master-1.21-ltsfrom
claude/fix-shaded-compat-aspect-textures
Dec 5, 2026
Merged

rubensworks merged 1 commit into
master-1.21-ltsfrom
claude/fix-shaded-compat-aspect-textures

Conversation

@rubensworks

@rubensworks rubensworks commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Closes #1796

Problem

On 1.21.1, the Refined Storage aspect icons (and any other aspect added by Integrated Dynamics Compat) render as missing textures.

The compat jar is shaded into the Integrated Dynamics jar. Both jars contain assets/minecraft/atlases/blocks.json, and the shadow config only appends META-INF/neoforge.mods.toml, so Integrated Dynamics' copy wins and the compat's copy is dropped. The compat's copy is the one listing its aspect textures, so they are never stitched into the block atlas.

Confirmed on released jars: integrateddynamics-1.21.1-neoforge-1.39.1-2451.jar contains the compat's RS classes, models and textures, but its only blocks.json has no RS entries. integrateddynamics-26.1.2-neoforge-1.37.1-2455.jar has the same gap, so newer versions are likely affected too (not verified in-game).

This does not show up in the compat dev environment, because there the compat is loaded as a separate mod with its own blocks.json.

Fix

Add a minecraft:directory source for aspect to Integrated Dynamics' block atlas, so every texture under textures/aspect/ is stitched, regardless of which blocks.json survives shading. The existing explicit aspect entries are left in place; they are now redundant but harmless.

Testing

  • End to end on 1.21.1 with real merged jars: a bare NeoForge 21.1.238 client loading only the merged Integrated Dynamics jar, CyclopsCore, CommonCapabilities and Refined Storage 2.0.4 as runtime mods (no dev sources).
    • Released integrateddynamics-1.21.1-neoforge-1.39.1-2451.jar: the RS aspects in the Inventory Reader show the missing textures from the issue.
    • Jar built from this branch: the RS aspect icons render correctly in both the Inventory Reader and the Inventory Writer, and Integrated Dynamics' own aspect icons are unchanged.
  • ./gradlew build passes; the built shaded jar has a single blocks.json containing the directory source, plus the compat's RS textures under textures/aspect/.
  • ./gradlew runGameTestServer: all 1084 required tests pass.

https://claude.ai/code/session_01UeSuG75hno1cAgLnyzmUgb


Generated by Claude Code

The compat jar is shaded into the Integrated Dynamics jar, and both
contain assets/minecraft/atlases/blocks.json. Only Integrated Dynamics'
copy survives shading, so aspect textures listed in the compat atlas
(such as the Refined Storage ones) were never stitched, and rendered as
missing textures.

Including the whole aspect texture directory in the block atlas makes
these textures load independently of the compat atlas file.

Closes #1796

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeSuG75hno1cAgLnyzmUgb
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 49.516% (-0.005%) from 49.521% — claude/fix-shaded-compat-aspect-textures into master-1.21-lts

@rubensworks
rubensworks merged commit 8756805 into master-1.21-lts Dec 5, 2026
9 checks passed
@rubensworks
rubensworks deleted the claude/fix-shaded-compat-aspect-textures branch December 5, 2026 08:54
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.

3 participants