Fix sources, let invalid model state weapons reset to base if necessary, check design application against base type.

This commit is contained in:
Ottermandias 2024-03-08 00:49:15 +01:00
parent ee426eb29f
commit c99aa51f8a
3 changed files with 6 additions and 7 deletions

View file

@ -331,7 +331,8 @@ public class StateListener : IDisposable
{
if (weapon.Skeleton.Id != 0)
weapon = weapon.With(newWeapon.Stain);
_manager.ChangeItem(state, slot, state.BaseData.Item(slot), ApplySettings.Game);
// Force unlock if necessary.
_manager.ChangeItem(state, slot, state.BaseData.Item(slot), ApplySettings.Game with { Key = state.Combination });
}
}