azurelib-forge-1.7.10-1.0.4.jar
Curse Maven Snippet
What's new
v1.0.4
Additions
- N/A
Fixes
- Fixed AzureLib armor rendering in the wrong place on players and mobs when an AzureLib entity was wearing the same armor item. The chestplate would float above the wearer's head.
- Fixed arm, leg and boot pieces of AzureLib armor on AzureLib entities being placed at the wrong position (for example, gauntlets rendering at the entity's feet), depending on the order the entity's bones rendered in.
Changes
- N/A
Developer Notes
- Each armor item shares one
AzArmorModelacross every wearer.AzArmorLayerused to leave that shared model's biped parts posed with the entity's bone pivots and rotations, and vanilla'sModelBiped#setRotationAnglesnever resetsbipedBody's rotation point or the arms' Y rotation point. That stale state then leaked into the next wearer. AzArmorModel#rendernow resets every biped part to the defaultModelBipedpose before callingsetRotationAngles, so the vanilla armor layer path always starts from a clean pose.AzArmorLayernow saves the biped pose of every armor model it uses during an entity's render and restores it inrender(context)once the model pass is finished. Subclasses that overriderendermust callsuper.render(context).AzArmorLayernow caches each entity's posed biped parts per armor model and applies that cache before each piece renders.applyBaseTransformationspositions every armor bone from every biped part, so each piece now sees this entity's full pose rather than default or leftover values. The cache is weakly keyed on the entity.
This mod has no additional files

