Skip to content

[Bug]: Invisible effect on AzureLib-rendered entities causes CTD #175

@Vetpetmon

Description

@Vetpetmon

Mod Version

3.1.3

Minecraft Version

1.20.1

Mod Loader

Forge (1.20.1 and older)

Mod Loader Version

Forge 47.4.16

Describe the bug

Giving an entity the Invisibility effect causes the game to hang on the frame before crashing to desktop.

Was observed since Azurelib v3.1.2, on both Linux and Windows systems, and was observed on both dedicated servers and singleplayer.

A crash log was printed:
crash-2026-03-01_14.37.25-client.txt

Suggesting that something in Azurelib's AzRendererPipelineContext class went wrong during an unsafe nullcheck via requireNonNull

In my own project, I'm writing a workaround that makes the affected entities immune to the invisibility effect.

To Reproduce

  1. Write any entity renderer using AzEntityRenderer
  2. Open the game and apply Invisibility tho the entity (either potions or commands)
  3. Client sided crash

Example renderer, entity shown in crash log:

public class GrapplerRender extends AzEntityRenderer<EntityGrappler> {
    private static final EntityEnum id = EntityEnum.GRAPPLER;

    public GrapplerRender(EntityRendererProvider.Context context) {
        super(
                AzEntityRendererConfig.<EntityGrappler>builder(((
                                        (entity2) -> id.getModel())),
                                (entity2) -> id.getTextureVariants(entity2.getVariant()))
                        .setAnimatorProvider( () -> new EntityAnimationController<>(id) ).setScale(1.0f).setDeathMaxRotation(0).setShadowRadius(0.25f).build(),
                context
        );
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions