BUG: Fix a character variable in Character.CanChangeClothesOn()

This commit is contained in:
bananarama92 2026-04-21 20:01:59 +02:00
parent bc468d2878
commit c9fb32fb1f
No known key found for this signature in database
GPG key ID: E83C7D3B5DA36248

View file

@ -249,8 +249,7 @@ function CharacterCreate(CharacterAssetFamily, Type, CharacterID) {
C.MemberNumber != null &&
C.AllowItem &&
!C.IsEnclose() &&
!(InventoryGet(CurrentCharacter, "ItemNeck") !== null &&
InventoryGet(CurrentCharacter, "ItemNeck").Asset.Name == "ClubSlaveCollar")
InventoryGet(C, "ItemNeck")?.Asset.Name !== "ClubSlaveCollar"
);
}
},