]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Emergency Fix for Whitelist logic (#28510)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Sun, 2 Jun 2024 06:21:07 +0000 (23:21 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 06:21:07 +0000 (02:21 -0400)
fix issue

Co-authored-by: plykiya <plykiya@protonmail.com>
Content.Shared/Materials/SharedMaterialStorageSystem.cs

index af815bdb2b7fb6bb95b3294d654b4f4e984085b1..a27e0fb9cf0b7f67257dd62db97529f7ebc66835 100644 (file)
@@ -123,7 +123,7 @@ public abstract class SharedMaterialStorageSystem : EntitySystem
         if (!CanTakeVolume(uid, volume, component))
             return false;
 
-        if (component.MaterialWhiteList == null ? false : component.MaterialWhiteList.Contains(materialId))
+        if (component.MaterialWhiteList == null ? false : !component.MaterialWhiteList.Contains(materialId))
             return false;
 
         var amount = component.Storage.GetValueOrDefault(materialId);