[MC-5477] Fireworks and given dye beyond id 15 Created: 28/Dec/12  Updated: 03/Jun/17  Resolved: 21/Aug/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.7, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 14w28a, Minecraft 14w28b
Fix Version/s: Minecraft 1.8-pre1

Type: Bug
Reporter: Joseph Knight Assignee: Mog (Ryan Holtz)
Resolution: Fixed Votes: 2
Labels: crash, dye, firework_charge
Environment:

OSX 10.5.8
Java 1.6.0_26


Attachments: Text File crash-2012-12-28_14.26.51-client.txt     Text File crash-2013-03-17_16.35.18-client.txt     Text File crash-2013-07-15_22.20.58-client.txt    
Issue Links:
Duplicate
is duplicated by MC-10201 Can't craft white firework star in SMP Resolved
is duplicated by MC-15341 Index out of bounds exception Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Creative

 Description   

What I expected to happen was...:
Uncertain, probably just white firework ball.

What actually happened was...:
Game crash.

Steps to Reproduce:
1.

/give @p dye 1 16

(16 or anything higher which is outside the normal range)
2. Put it in a crafting table with gun powder.
3. Game crashes



 Comments   
Comment by Mog (Ryan Holtz) [ 21/Aug/14 ]

Fixed, but dye items with a data value over 15 are technically not valid and you should not be using them.

Comment by Sealbudsman [ 15/Jul/14 ]

Would someone be able to fix step 1 in the description? EDIT: <3 Thanks

Comment by Anon Ymus [ 15/Jul/14 ]

Confirmed that that still causes a crash.

Comment by Sealbudsman [ 15/Jul/14 ]

I'm still getting a crash in 1.8 snapshots including 14w28b. The instructions to reproduce were a little off.

In step 1 in the above instructions, one should include both the quantity and the damage-value after the player selector, so that the instructions are like this:

1. /give @p dye 1 <some number above 15>
2. Put it on a crafting table with gun powder.
3. game crashes

Comment by Anon Ymus [ 15/Jul/14 ]

Fixed in 1.8 snapshots.

Comment by Tails [ 15/Jul/13 ]
Description: Updating screen events
java.lang.ArrayIndexOutOfBoundsException: 16
	at zy.a(SourceFile:107)
	at aae.a(SourceFile:810)
	at vk.a(SourceFile:53)
	at vj.a(SourceFile:81)
	at wd.c(SourceFile:77)
	at ux.a(SourceFile:223)
	at bcz.a(SourceFile:295)
	at awv.a(SourceFile:582)
	at awv.b(SourceFile:555)
	at awb.d(SourceFile:132)
	at awb.m(SourceFile:107)
	at ats.k(SourceFile:1158)
	at ats.S(SourceFile:663)
	at ats.d(SourceFile:619)
	at net.minecraft.client.main.Main.main(SourceFile:101)
Comment by Dean Baset [ 30/Dec/12 ]

Confirmed

Comment by Joseph Knight [ 28/Dec/12 ]

Doh! I always forget the 'count' parameter when adding damage parameters. But yes, that is the issue. Good intuiting my error'd instructions.

Comment by Jason [ 28/Dec/12 ]

Can reproduce, Though step one is incorrect, it should be /give username 351 1 16

Severe, can cause game crash & loss of data.

Generated at Sun Jan 12 12:08:02 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.