hi, after update from v1.5 to 1.6 in config value "Require Cupboard To Be Looted Before Despawning" - doesn't work (true/false),
I don't know why author add CupBoard in container list, i hope he will fix that or we should manual fix every update
hi, after update from v1.5 to 1.6 in config value "Require Cupboard To Be Looted Before Despawning" - doesn't work (true/false),
I don't know why author add CupBoard in container list, i hope he will fix that or we should manual fix every update
public bool CanUndo()
{
if (EndWhenCupboardIsDestroyed())
{
return true;
}
if (_config.Settings.Management.RequireCupboardLooted && privSpawned)
{
if (priv.IsValid() && !priv.IsDestroyed && !priv.inventory.IsEmpty())
{
return false;
}
}
foreach (var container in _containers)
{
if (container.IsValid() && !container.IsDestroyed && !container.inventory.IsEmpty() && IsBox(container))
{
return false;
}
}
return true;
} in the next update that hasn't been released yet? because now in 1.6
public bool CanUndo()
{
if (EndWhenCupboardIsDestroyed())
{
return true;
}
if (_config.Settings.Management.RequireCupboardLooted && privSpawned)
{
return priv == null || priv.IsDestroyed || priv?.inventory?.itemList?.Count == 0;
}
foreach (var container in _containers)
{
if (container?.inventory?.itemList?.Count > 0)
{
return false;
}
}
return true;
}