mojira.dev
MC-9065

Crash when giving item 31 with damage 3

Typing the command /give (player) 31 1 3 will cause the player who is given the item to crash and make the server/world unplayable to him/her, also severely glitches out the player who crashes.

Video of what happens here http://www.youtube.com/watch?v=cqVZimRNYoE

Attachments

Comments 10

Thanks, I had to crash my server so an explosion got rolled back ^^

Can you please attach the crash report ?

Note:

java.lang.ArrayIndexOutOfBoundsException: 3
	at aof.a(SourceFile:31)
	at un.a_(SourceFile:28)
	at vv.h(SourceFile:340)
	at vx.c(SourceFile:86)
	at bgh.a(SourceFile:118)

If this happened to your player, you can fix him crashing when getting on by deleting the player file in root/world/players

Item id 31 is used for dead shrubs, tall grass, and ferns. There is no item for the id with a NBT value of 3.

But the game shouldn't crash.

My guess is that the data values are stored as an array, and as such the system is trying to use a nonexistent array component, causing the error that Kumasasa pointed out above.

The game should have better error-handling such as simply not allowing that item to be given!

Confirmed in 13w07a

Jnrm3

(Unassigned)

Confirmed

command, crash, multiplayer

Snapshot 13w05b, Snapshot 13w07a

Minecraft 1.5

Retrieved