mojira.dev
MC-301751

The client crashes when in the vicinity of a mannequin spawner

The bug

The game crashes when it tries to render a mannequin inside of a spawner, and the world will become unplayable.

Description: Extracting render state for an entity in world

java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.entity.EntityRenderer.createRenderState(net.minecraft.world.entity.Entity, float)" because "$$2" is null
	at net.minecraft.client.renderer.entity.EntityRenderDispatcher.extractEntity(SourceFile:136)
	at net.minecraft.client.renderer.blockentity.TrialSpawnerRenderer.extractSpawnerData(SourceFile:45)
	at net.minecraft.client.renderer.blockentity.SpawnerRenderer.extractRenderState(SourceFile:37)
	at net.minecraft.client.renderer.blockentity.SpawnerRenderer.extractRenderState(SourceFile:17)
	at net.minecraft.client.renderer.blockentity.BlockEntityRenderDispatcher.tryExtractRenderState(SourceFile:96)
	at net.minecraft.client.renderer.LevelRenderer.extractVisibleBlockEntities(SourceFile:858)
	at net.minecraft.client.renderer.LevelRenderer.renderLevel(SourceFile:482)
	at net.minecraft.client.renderer.GameRenderer.renderLevel(SourceFile:771)
	at net.minecraft.client.renderer.GameRenderer.render(SourceFile:531)
	at net.minecraft.client.Minecraft.runTick(SourceFile:1385)
	at net.minecraft.client.Minecraft.run(SourceFile:971)
	at net.minecraft.client.main.Main.main(SourceFile:250)

Steps to reproduce

  1. Join a world with commands enabled.

  2. Run the following command:

    setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:mannequin"}}}

Linked issues

Attachments

Comments 2

Confirmed in Minecraft 25w36b.

P1x3L_Cr4ft3R

slicedlime

Confirmed

Platform

Important

Crash

25w36a, 25w36b

25w37a

Retrieved