Fix complete raid if cup looting is disabled

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

you're listing 2 issues as 1 issue when they're separate issues entirely. they are both fixed in the next update

Merged post

            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;
            }
thats why its called the NEXT update
Locked