Fix Murdertron 5000 a/k/a Emagged recycler (#18892)
* Fix gibbing humans * Millions must gib * Workplace accident * Everything alive goes into the recycler * Review
This commit is contained in:
@@ -111,11 +111,13 @@ public abstract class SharedMaterialReclaimerSystem : EntitySystem
|
||||
if (!CanStart(uid, component))
|
||||
return false;
|
||||
|
||||
if (component.Whitelist != null && !component.Whitelist.IsValid(item) ||
|
||||
HasComp<MobStateComponent>(item) && !CanGib(uid, item, component)) // whitelist? We be gibbing, boy!
|
||||
if (HasComp<MobStateComponent>(item) && !CanGib(uid, item, component)) // whitelist? We be gibbing, boy!
|
||||
return false;
|
||||
|
||||
if (component.Blacklist != null && component.Blacklist.IsValid(item))
|
||||
if (component.Whitelist is {} whitelist && !whitelist.IsValid(item))
|
||||
return false;
|
||||
|
||||
if (component.Blacklist is {} blacklist && blacklist.IsValid(item))
|
||||
return false;
|
||||
|
||||
if (!_container.TryRemoveFromContainer(item))
|
||||
|
||||
Reference in New Issue
Block a user