Do not apply Nothing-shield for swords periphery.

This commit is contained in:
Ottermandias 2024-08-06 17:38:53 +02:00
parent 1cc7c2f0cd
commit 5bca4b9118
2 changed files with 5 additions and 1 deletions

View file

@ -456,6 +456,10 @@ public class StateEditor(
return;
var mh = newMainhand ?? state.ModelData.Item(EquipSlot.MainHand);
// Do not change Shields to nothing.
if (mh.Type is FullEquipType.Sword)
return;
var offhand = newMainhand != null ? Items.GetDefaultOffhand(mh) : state.ModelData.Item(EquipSlot.OffHand);
var stains = newStains ?? state.ModelData.Stain(EquipSlot.MainHand);
if (offhand.Valid)