I got an issue when I go mining in a hidden mine map that does not exist in the normal game. I enabled mining for that hidden map and then started mining in the game then...
It gave me an error that looks like this
MaxDurability = BaseItem.AmountMax;
System.NullReferenceException: 'Object reference not set to an instance of an object.'
Redux.Structures.ConquerItem.BaseItem.get returned null.
Located at
Redux.Structures.Conqueritem.cs
Code:
public ConquerItem(uint _uniqueID, uint _staticID, byte _plus = 0, byte _bless = 0, byte _enchant = 0, byte _gem1 = 0, byte _gem2 = 0, bool _locked = false, byte _effect = 0)
{
UniqueID =_uniqueID;
StaticID = _staticID;
MaxDurability = BaseItem.AmountMax; <--The error is in this line
Durability = BaseItem.AmountMax;
Plus = _plus;
Bless = _bless;
Enchant = _enchant;
Gem1 = _gem1;
Gem2 = _gem2;
Locked = _locked;
Effect = _effect;
if ((EquipmentSort == 1 || EquipmentSort == 3 || EquipmentSort == 4) && BaseItem.TypeDesc != "Earring")
Color = (byte)Common.Random.Next(3, 7);
else
Color = 3;
}
Apparently, the system cannot read the MaxDurability line even if my pickaxe is equipped with full Durability.
It does not happen if I mine in a map like TC, PC, AC, DC mines
Only in the hidden mines and I want to make mining work in those hidden maps just like how the regular mines will work.
What to be doing now?