mojira.dev
MC-277955

Using a loom crashes the game

Trying to open the loom UI crashes the game

Linked issues

Attachments

Comments 2

Code analysis (Yarn mappings)

The EntityModelLayers.STANDING_BANNER model layer does not contain the flag part; instead, this is provided by EntityModelLayers.STANDING_BANNER_FLAG. In previous versions these were all the same EntityModelLayers.BANNER model layer so the issue did not occur.

To fix the issue, the following line in the LoomScreen#init method:

this.bannerField = this.client.getEntityModelLoader().getModelPart(EntityModelLayers.STANDING_BANNER).getChild("flag");

...should be replaced with:

this.bannerField = this.client.getEntityModelLoader().getModelPart(EntityModelLayers.STANDING_BANNER_FLAG).getChild("flag");

Acorit

gegy

Confirmed

Platform

Very Important

Crash, UI

24w44a

24w45a

Retrieved