Excluded Containers still can be looted with "Loot All"Not An Issue

Hi,
i would like to add some containers to the exclude list.

"Default UI style (center, lite, right, custom)": "lite",
"Excluded containers": [
      "autoturret_deployed",
      "dropbox.deployed",
      "flameturret.deployed",
      "guntrap.deployed",
      "sam_site_turret_deployed",
      "sam_static",
      "scientist_turret_any",
      "scientist_turret_lr300",
      "wall.frame.shopfront",
      "wall.frame.shopfront.metal",
      "wall.frame.shopfront.metal.static",
	  "recycler_static",
      "hopperoutput",
      "crudeoutput",
      "fuelstorage",
      "heli_crate",
      "codelockedhackablecrate",
      "engine"
    ]​

But the 3 buttons (lite version) still shows up :(


I am getting this message when reloading QuickSort.
I guess some of the entries do not work as intended?

(15:04:27) | [Oxide] 15:05 [Info] Unloaded plugin Quick Sort v1.8.1 by MON@H
(15:04:27) | StringPool.GetNumber - no number for string scientist_turret_any
(15:04:27) | StringPool.GetNumber - no number for string scientist_turret_lr300
(15:04:27) | StringPool.GetNumber - no number for string wall.frame.shopfront
(15:04:27) | StringPool.GetNumber - no number for string wall.frame.shopfront.metal
(15:04:27) | StringPool.GetNumber - no number for string wall.frame.shopfront.metal.static
(15:04:27) | StringPool.GetNumber - no number for string recycler_static.prefab
(15:04:27) | StringPool.GetNumber - no number for string recycler_static
(15:04:27) | StringPool.GetNumber - no number for string hopperoutput
(15:04:27) | StringPool.GetNumber - no number for string crudeoutput
(15:04:27) | StringPool.GetNumber - no number for string fuelstorage
(15:04:27) | StringPool.GetNumber - no number for string heli_crate
(15:04:27) | StringPool.GetNumber - no number for string codelockedhackablecrate
(15:04:27) | [Oxide] 15:05 [Info] Loaded plugin Quick Sort v1.8.1 by MON@H​


Merged post

I added this lines to your "IsContainerExcluded"

if(_configData.GlobalSettings.ContainersExcluded.Contains(entity.ShortPrefabName))
            {
                return true;
            }​

Your weird uint conversion with StringPool.Get() does not work correctly.
A simply config.contains(shortprefabname) is fine.
Works for me now :) But maybe you want to look into it

You must use prefab names, not short prefab names. It's not weird, but to improve performance. Using "contains" is much slower.

Locked automatically