Skip to content

Commit

Permalink
Fix layering issues with armor/clothing (#4149)
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimShi authored Apr 21, 2024
1 parent 3aab387 commit 90c7e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ACE.Server/WorldObjects/Creature_Networking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public override ACE.Entity.ObjDesc CalculateObjDesc()
var sortedArmorItems = bottom.Concat(noLayer).Concat(top).ToList();

var clothesAndCloaks = EquippedObjects.Values
.Where(x => (x.ItemType == ItemType.Clothing)) // FootWear & HandWear is included in the ArmorItems above
.Where(x => (x.ItemType == ItemType.Clothing) && (x.CurrentWieldedLocation & (EquipMask.Armor | EquipMask.Extremity)) == 0) // Extremity, Head/Foot/Hands, is included in the ArmorItems above
.OrderBy(x => x.ClothingPriority);

var eo = clothesAndCloaks.Concat(sortedArmorItems).ToList();
Expand Down

0 comments on commit 90c7e92

Please sign in to comment.