mojira.dev
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.

Linked issues

Attachments

Comments 3

Isn't resolved this is confirmed in latest snapshot

[media]

[media]

so yep not resolved please fix this and the other two related issues of it skipping frames and crashes with interpolations please thanks.

they better fix this

AjaxGb

(Unassigned)

Confirmed

(Unassigned)

Minecraft 17w45b, Minecraft 18w07c

Minecraft 18w01a, 21w03a

Retrieved