mojira.dev
MC-298368

"music_notes.png.mcmeta" has an extra index that does not exist, causing a warning

The animation definition file music_notes.png.mcmeta in the assets/minecraft/textures/gui/sprites/icon directory has an extra index. There are only 8 frames in the corresponding texture, music_notes.png, but 9 frames are defined. The index should start at 0 and end at 7, not start at 0 and end at 8.

This causes the following warning to be produced in the log:

[Worker-Main-39/WARN]: Invalid frame index on sprite minecraft:icon/music_notes frame 8: 8

To fix this, the following part (lines 36–39) should be removed from the animation definition file:

{
                "index": 8,
                "time": 2
            }

Alternatively: The animation definition file currently defines the time for each individual frame. However, all frames have the same time (2), so the frametime property could be used instead. 47 other animation definition files in the game do this.

{
    "animation": {
        "frametime": 2
    }
}

Linked issues

Comments 0

No comments.

Bluebird

Fantastime

Confirmed

Platform

Normal

Textures and models

1.21.6 Pre-Release 1

1.21.6 Pre-Release 2

Retrieved