Emergency Fix for Whitelist logic (#28510)
fix issue Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -123,7 +123,7 @@ public abstract class SharedMaterialStorageSystem : EntitySystem
|
|||||||
if (!CanTakeVolume(uid, volume, component))
|
if (!CanTakeVolume(uid, volume, component))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (component.MaterialWhiteList == null ? false : component.MaterialWhiteList.Contains(materialId))
|
if (component.MaterialWhiteList == null ? false : !component.MaterialWhiteList.Contains(materialId))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var amount = component.Storage.GetValueOrDefault(materialId);
|
var amount = component.Storage.GetValueOrDefault(materialId);
|
||||||
|
|||||||
Reference in New Issue
Block a user