Building Gadgets

Building Gadgets

110M Downloads

[Crash] Copy/Paste preview overlaying Gregtech Modern's Fusion Reactor light ring causes crash.

kalutro opened this issue ยท 4 comments

commented

Building Gadgets Version
1.0.7

Describe the bug
Using the preview for the Copy/Paste gadget and overlaying it over the GregTech Fusion Reactor's light ring (rendered only when active) causes a crash.

To Reproduce

1. Activate Paste preview.
2. Place it over any part of the light ring that renders when the reactor is active.
3. Crash.
4. Reload world and crash on load because reactor is still active and preview is anchored.
5. Weep quietly while reloading backup, losing a bunch of progress.

Expected behavior
I would expect no crash.

Screenshots
N/A

Log Files
crash-2025-05-01_13.28.14-client.txt

Modpack is Monifactory 0.12.3. I also posted this issue on GT's repo and they had some suggestions.
GregTechCEu/GregTech-Modern#3123

commented

This also happens in Star Technology.
GTCE 1.6.4
Building Gadgets 2 1.0.7

commented
commented

copying my comment here as well:

The issue is caused by this method not checking if the passed render type HAS a texture state shard, so it's an issue in Building gadgets.
They should probably cast it to a RenderStateShard.EmptyTextureStateShard instead of the filled one, use the getter in that class instead of an accessor mixin, and generally check if the render state contains what they expect it to have before swapping it out.

commented

Got this crash(?), or very similar, when placing cursor on/near(?) finished Fusion Multi, on ATM9.