TwelveIterationMods / Balm

Abstraction Layer (but not really)™ for Blay's multiplatform mods
https://mods.twelveiterations.com/mc/balm
Other
29 stars 16 forks source link

Rendering crash with balm-fabric:milk in a TechReborn cell #94

Closed SubordinalBlue closed 3 months ago

SubordinalBlue commented 3 months ago

Minecraft Version

1.20.1 (LTS)

Mod Loader

Fabric

Mod Loader Version

0.15.11

Mod Version

7.3.7

Balm Version

7.3.7 (how is this question different than the previous?)

Describe the Issue

AoF7 updated to Balm 7.3.7 and now we get a rendering crash in REI, on a TR cell with balm-fabric:milk

Crash does not happen with Balm 7.3.6.

Further discussion, including a crash log, on the AOE discord: https://discord.com/channels/570630340075454474/1273504044916408320

Logs

No response

Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?

No response

SubordinalBlue commented 3 months ago

Further discussion, including a crash log, on the AOE discord: https://discord.com/channels/570630340075454474/1273504044916408320

But, ok:

https://pastebin.com/LW7cNpXC

SubordinalBlue commented 3 months ago

The further discussion already linked include a player confirming it was not other liquids in TR cells, and that the crash didn't happen with the previous version of Balm.

BlayTheNinth commented 3 months ago

This is an issue in Tech Reborn. FluidRenderHandlerRegistry.INSTANCE.get is explicitly @Nullable but TechReborn is not checking for null, resulting in the crash above.

SubordinalBlue commented 3 months ago

Hmm. True on surface, but wondering why it's only balm-fabric:milk and not the other ~20 give or take different mods providing fluids listed in TR cells in REI (in AoF7) that seems to be leaving that null.

(screen shot from AoF7 with Balm rolled back one version. Yes, ik, one can't see what fluids are in there from this shot; you'll have to trust me on that)

Screenshot 2024-08-16 at 3 12 25 AM

[ edited for a darker screen shot ]

SubordinalBlue commented 3 months ago

True on surface,

After talking it over with a more knowledgabe acquaintance... wouldn't that really be TR not handling the null and forcing the caller to deal with it? Shouldn't Balm be registering a default render handler for balm-fabric:milk?

BlayTheNinth commented 3 months ago

Balm could register a render handler (and will, since it's just a one-liner), but there may always be other mods who just needed a quick dummy fluid and didn't bother with its rendering.

Therefore this is absolutely also something that should be fixed in Tech Reborn as well.