Balm icon indicating copy to clipboard operation
Balm copied to clipboard

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

Open SubordinalBlue opened this issue 1 year ago • 5 comments

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 avatar Aug 15 '24 11:08 SubordinalBlue

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

But, ok:

https://pastebin.com/LW7cNpXC

SubordinalBlue avatar Aug 15 '24 12:08 SubordinalBlue

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.

SubordinalBlue avatar Aug 15 '24 12:08 SubordinalBlue

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.

BlayTheNinth avatar Aug 15 '24 12:08 BlayTheNinth

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 avatar Aug 15 '24 17:08 SubordinalBlue

~~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?

SubordinalBlue avatar Aug 16 '24 23:08 SubordinalBlue

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.

BlayTheNinth avatar Aug 19 '24 13:08 BlayTheNinth