mojira.dev
MC-7820

Using /give with large data value on wool crashes game

When using the command "/give PLAYERNAME 35 1 700", which translates to wool with a data value of 700, it crashes the game. Now creating a wool block with data value of 700 is silly but I wouldn't expect it would crash just ignore my data value. If you were to do the same with glass (block 20) it will ignore you and give you data value of 0. After crashing out I just tried to reconnect and I believe the faulty entity is still around and it crashes me out immediately. Apologies if this is a dupe I have searched and did not found anything smiler.

Linked issues

Attachments

Comments 3

If I delete my player.dat file it allows me to login with no problems; however the bug still exists when I then try it again 😛

I found the same problem. It looks as if giving a wool with a damage value over 15 results in an OutOfBounds exception. After this happens, the only way to fix the level is to remove that item from the level.dat, otherwise the level is unplayable.

Note:

Description: Rendering entity in world
java.lang.ArrayIndexOutOfBoundsException: 700
	at aki.a(SourceFile:20)
	at bed.a(SourceFile:6996)
	at bed.a(SourceFile:6588)
	at bfg.a(SourceFile:82)

Michael F

(Unassigned)

Community Consensus

data-values, entites, wool

Snapshot 13w03a, Snapshot 13w07a

Retrieved