AzureLib

AzureLib

20M Downloads

[Bug]: Rewrite ignores "includes" field of Json animation files

JayZX535 opened this issue ยท 0 comments

commented

Mod Version

3.0.3

Minecraft Version

1.18.2

Mod Loader

Forge (1.20.1 and older)

Mod Loader Version

Forge Loader 40.3.0

Describe the bug

When loading animations from Json with the rewrite, the "includes" field that pulls animations from other files is overlooked. Trying to play any animation from "includes" will cause the warning Unable to find animation: name for Entity, but moving that same animation to the "animations" list causes it to load properly. This effectively makes multi-file animation setups unusable.

The legacy setup still appears to load animations from "includes" correctly.

To Reproduce

  1. Use the "includes" field of a Json animation definition to import animations to another file
  2. Return the file with imports in the getAnimationLocation() of a AzEntityAnimator
  3. Imported animations fail to load and result in warnings on the render thread and animations that do not play.
    ...