Make sure lathes don't waste time trying to print when out of mats. (#16617)
This commit is contained in:
@@ -274,6 +274,8 @@ namespace Content.Server.Lathe
|
|||||||
{
|
{
|
||||||
if (TryAddToQueue(uid, recipe, component))
|
if (TryAddToQueue(uid, recipe, component))
|
||||||
count++;
|
count++;
|
||||||
|
else
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (count > 0 && args.Session.AttachedEntity != null)
|
if (count > 0 && args.Session.AttachedEntity != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user