mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-15 05:04:16 +01:00
Fix issue with invalid bonus items.
This commit is contained in:
parent
c0a278ca2c
commit
8ed479eddf
1 changed files with 4 additions and 2 deletions
|
|
@ -145,8 +145,10 @@ public class ItemManager
|
||||||
// Only from early designs as migration.
|
// Only from early designs as migration.
|
||||||
if (!id.IsBonusItem || id.Id == 0)
|
if (!id.IsBonusItem || id.Id == 0)
|
||||||
{
|
{
|
||||||
IsBonusItemValid(slot, (BonusItemId)id.Id, out var item);
|
if (IsBonusItemValid(slot, (BonusItemId)id.Id, out var item))
|
||||||
return item;
|
return item;
|
||||||
|
|
||||||
|
return EquipItem.BonusItemNothing(slot);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!id.IsCustom)
|
if (!id.IsCustom)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue