mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: lumina 2.1.1 incompatibilities
This commit is contained in:
parent
611679d38a
commit
e271f76b69
3 changed files with 6 additions and 4 deletions
|
|
@ -124,7 +124,7 @@ namespace Dalamud.Data
|
|||
/// </summary>
|
||||
/// <typeparam name="T">The excel sheet type to get.</typeparam>
|
||||
/// <returns>The <see cref="ExcelSheet{T}"/>, giving access to game rows.</returns>
|
||||
public ExcelSheet<T> GetExcelSheet<T>() where T : IExcelRow
|
||||
public ExcelSheet<T> GetExcelSheet<T>() where T : class, IExcelRow
|
||||
{
|
||||
return this.Excel.GetSheet<T>();
|
||||
}
|
||||
|
|
@ -135,7 +135,7 @@ namespace Dalamud.Data
|
|||
/// <param name="language">Language of the sheet to get.</param>
|
||||
/// <typeparam name="T">The excel sheet type to get.</typeparam>
|
||||
/// <returns>The <see cref="ExcelSheet{T}"/>, giving access to game rows.</returns>
|
||||
public ExcelSheet<T> GetExcelSheet<T>(ClientLanguage language) where T : IExcelRow {
|
||||
public ExcelSheet<T> GetExcelSheet<T>(ClientLanguage language) where T : class, IExcelRow {
|
||||
var lang = language switch {
|
||||
ClientLanguage.Japanese => Language.Japanese,
|
||||
ClientLanguage.English => Language.English,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using Lumina.Data;
|
||||
using Lumina.Excel;
|
||||
|
||||
namespace Dalamud.Data.TransientSheet
|
||||
|
|
@ -27,7 +28,7 @@ namespace Dalamud.Data.TransientSheet
|
|||
public uint RowId { get; set; }
|
||||
public uint SubRowId { get; set; }
|
||||
|
||||
public void PopulateData( RowParser parser, Lumina.Lumina lumina )
|
||||
public void PopulateData( RowParser parser, Lumina.Lumina lumina, Language language )
|
||||
{
|
||||
RowId = parser.Row;
|
||||
SubRowId = parser.SubRow;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using Lumina.Excel;
|
||||
using Lumina.Data;
|
||||
|
||||
namespace Dalamud.Data.TransientSheet
|
||||
{
|
||||
|
|
@ -201,7 +202,7 @@ namespace Dalamud.Data.TransientSheet
|
|||
public uint RowId { get; set; }
|
||||
public uint SubRowId { get; set; }
|
||||
|
||||
public void PopulateData( RowParser parser, Lumina.Lumina lumina )
|
||||
public void PopulateData( RowParser parser, Lumina.Lumina lumina, Language language )
|
||||
{
|
||||
RowId = parser.Row;
|
||||
SubRowId = parser.SubRow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue