Skip to content

Fix missing/invalid pipe model issues#4530

Merged
Ghostipedia merged 15 commits intoGregTechCEu:1.20.1from
screret:sc/fix-missing-model-issues
Feb 1, 2026
Merged

Fix missing/invalid pipe model issues#4530
Ghostipedia merged 15 commits intoGregTechCEu:1.20.1from
screret:sc/fix-missing-model-issues

Conversation

@screret
Copy link
Copy Markdown
Contributor

@screret screret commented Feb 1, 2026

What

Fix some minor issues that went unnoticed in #4283, like cables having missing textures.

Implementation Details

RuntimeExistingFileHelper was changed to assume all files exist by default and a version that actually checks whether or not the resource exists was added, accessible with RuntimeExistingFileHelper#activeHelper.

Outcome

No more missing texture crash (this was reported in the KubeJS discord a week or so ago)
No more error spam from cables (talked about this in mdt yesterday)
Fixed a bug with 'active' pipes like laser pipes and optical fiber cables probably not using their active textures at all

How Was This Tested

This used to be a missing model cube:
2026-02-01_15 58 40
Having something like this (missing texture references in machines) previously crashed the client on load:
2026-02-01_15 58 18
Active pipes are now glowy as they should be:
2026-02-01_18 29 38

Additional Information

I made getting PipeModelBuilders into an invalid state harder by making the thickness and model provider arguments required.

Potential Compatibility Issues

Nobody used any of this yet, so none

@screret screret requested a review from a team as a code owner February 1, 2026 14:22
@github-actions github-actions bot added the 1.20.1 label Feb 1, 2026
@screret screret force-pushed the sc/fix-missing-model-issues branch from 96e025a to d921f42 Compare February 1, 2026 14:26
Copy link
Copy Markdown
Member

@Ghostipedia Ghostipedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine at a glance would like @YoungOnionMC to take a look over it as well

@Ghostipedia Ghostipedia added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Feb 1, 2026
@Ghostipedia Ghostipedia merged commit e62003c into GregTechCEu:1.20.1 Feb 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants