Remove 700 usages of Component.Owner (#21100)
This commit is contained in:
@@ -38,7 +38,7 @@ public abstract class SharedLatheSystem : EntitySystem
|
||||
{
|
||||
var adjustedAmount = AdjustMaterial(needed, recipe.ApplyMaterialDiscount, component.MaterialUseMultiplier);
|
||||
|
||||
if (_materialStorage.GetMaterialAmount(component.Owner, material) < adjustedAmount * amount)
|
||||
if (_materialStorage.GetMaterialAmount(uid, material) < adjustedAmount * amount)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user