mojira.dev
MC-36324

When trading a villager block 36, game crashes

When trading with a villager with the option to trade a block with the id of 34 or 36, the game crashes.

How to replicate:
1. Get a villager with a trade option with block 34 or 36 (I used MCEdit)
2. Access trade with the villager
3. Select the trade with block id 34 or 36
4. Watch as the game crashes

Linked issues

MC-35137 Hopper: java.lang.NullPointerException: Rendering screen Resolved MC-36144 Hopper: java.lang.NullPointerException: Rendering screen Resolved MC-36918 Hopper: java.lang.NullPointerException: Rendering screen Resolved MC-37086 Hopper: java.lang.NullPointerException: Rendering screen Resolved MC-37139 Hopper: java.lang.NullPointerException: Rendering screen Resolved

Attachments

Comments 6

Just do not do that.

SullyTheUnusual

I would just like to mention that this breaks villagers on anyone's map who uses the MCEdit filter "Create Shops" with the entry "Add Unusable Trade". This is meant to prevent villagers adding new normal villager trades to the list after trading.

If this isn't going to be fixed, could I suggest it as a feature request? 🙂

Use impossible Trades like Bedrock or more than 64 Emeralds to prevent more trades.
Technical blocks (like 36) were removed from the game.
And as far as I know, MCEdit is a 3rd party tool.

Xavier Hodgson

This is not resolved.
It now happens with every modified items. Including item strings.
It's affected many maps and map makers.

Map makers will need to update their maps in order for them to work for 1.7.
What do you mean with "item strings"?

Description: Rendering screen

java.lang.NullPointerException: Rendering screen
	at bcl.a(SourceFile:76)
	at bel.a(SourceFile:161)
	at bmm.b(SourceFile:852)
	at azi.ah(SourceFile:787)
	at azi.f(SourceFile:711)
	at net.minecraft.client.main.Main.main(SourceFile:152)

Devin Kamer

Erik Broes

Unconfirmed

crash

Minecraft 13w39b, Minecraft 13w41a, Minecraft 13w41b, Minecraft 13w42a, Minecraft 13w42b

Retrieved