Mojira Archive
MC-121897

Gaps in an animation's used frames throws ArrayIndexOutOfBoundsException

Take the frames list of an animated texture and sort it. If there are any gaps between frames in the result, or if the frames do not start at 0, the parser fails with an ArrayIndexOutOfBoundsException. Unused frames at the end of a sprite sheet are fine, but unused ones at the start or in the middle bug out.

For example,

{
	"animation":{
		"frames":[1,2]
	}
}

and

{
	"animation":{
		"frames":[2,0]
	}
}

will fail, but

{
	"animation":{
		"frames":[1,2,0]
	}
}

will succeed.

Fixed

AjaxGb

2017-11-12, 11:22 AM

2021-01-19, 05:38 PM

2021-01-19, 05:38 PM

3

9

Confirmed

(Unassigned)

Minecraft 17w45b, Minecraft 18w07c

Minecraft 18w01a, 21w03a