Recycler Now Accepts All Trash (#11523)

This commit is contained in:
civilCornball
2022-09-29 16:44:56 -04:00
committed by GitHub
parent 47e1e991b5
commit f19791f01b

View File

@@ -92,8 +92,8 @@ namespace Content.Server.Recycling
{
RecyclableComponent? recyclable = null;
// Can only recycle things that are recyclable... And also check the safety of the thing to recycle.
if (!_tags.HasTag(entity, "Recyclable") &&
// Can only recycle things that are tagged trash or recyclable... And also check the safety of the thing to recycle.
if (!_tags.HasAnyTag(entity, "Trash", "Recyclable") &&
(!TryComp(entity, out recyclable) || !recyclable.Safe && component.Safe))
{
return;