Skip to content

Crash: NPE in EntityRenderDispatcher.shouldRender when placing or using Minekea chairs (NeoForge 1.21.1) #52

Description

@EnchiladaOne

Hello! I'm running a larger modpack and ran into some issues. I did some testing and managed to narrow down the issue to minekea. I've attached the full crash log as well. Hopefully this helps!

Environment

  • Minecraft: 1.21.1
  • Loader: NeoForge 21.1.219
  • Minekea: minekea-neoforge-7.1.0

Supporting mods only (minimal repro):

  • architectury (neoforge)
  • chimericlib (neoforge)
  • yet_another_config_lib_v3 (neoforge)

No other content, rendering, or performance mods present (no Create, Sodium, Iris, etc.).

Description

Placing a Minekea chair (e.g., Dark Oak Chair) or attempting to sit on it causes the client to crash with a NullPointerException on the render thread. The crash occurs immediately upon placement or interaction and makes the world unloadable while Minekea is enabled.

Removing Minekea allows the world to load normally again.

Steps to Reproduce

  • Launch Minecraft 1.21.1 with NeoForge 21.1.219.
  • Install only Minekea 7.1.0 (NeoForge) and its required support libraries.
  • Create a new singleplayer world.
  • Give yourself a Minekea chair (e.g., Dark Oak Chair).
  • Place the chair or attempt to sit in it.
  • Client crashes immediately.

java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.entity.EntityRenderer.shouldRender(...)" because "entityrenderer" is null at net.minecraft.client.renderer.entity.EntityRenderDispatcher.shouldRender(EntityRenderDispatcher.java:136) at net.minecraft.client.renderer.LevelRenderer.renderLevel(LevelRenderer.java:1003) at net.minecraft.client.renderer.GameRenderer.renderLevel(GameRenderer.java:1271)
Additional Notes

  • Reproduces in a minimal instance with only Minekea and its dependencies.
  • Also reproduces in larger modpacks.
  • Removing Minekea and re-saving the world removes the crashing entity and restores stability.
  • Based on testing, this appears to be caused by a Minekea entity (likely the chair/seat entity) that does not have a client renderer registered, leading to a null EntityRenderer during rendering.

crash-2026-02-07_13.59.53-client.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions