fix(character): fix mounts when wielding no weapons
This commit is contained in:
parent
e497ecb725
commit
0e4fa65d3c
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@
|
||||||
const offHand = charData.equipment.find(e => e.slot === 16);
|
const offHand = charData.equipment.find(e => e.slot === 16);
|
||||||
const ranged = charData.equipment.find(e => e.slot === 17);
|
const ranged = charData.equipment.find(e => e.slot === 17);
|
||||||
|
|
||||||
characterModel.charCustomization.sheathMain = sheathTypes[mainHand.classId][mainHand.subclassId];
|
characterModel.charCustomization.sheathMain = mainHand !== undefined ? sheathTypes[mainHand.classId][mainHand.subclassId] : undefined;
|
||||||
if (offHand !== undefined) {
|
if (offHand !== undefined) {
|
||||||
characterModel.charCustomization.sheathOff = sheathTypes[offHand.classId][offHand.subclassId];
|
characterModel.charCustomization.sheathOff = sheathTypes[offHand.classId][offHand.subclassId];
|
||||||
} else if (ranged !== undefined) {
|
} else if (ranged !== undefined) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue