Make sure lathes don't waste time trying to print when out of mats. (#16617)

This commit is contained in:
Moony
2023-05-19 10:25:22 -05:00
committed by GitHub
parent 65e69cd472
commit e2b5651fc3

View File

@@ -274,6 +274,8 @@ namespace Content.Server.Lathe
{
if (TryAddToQueue(uid, recipe, component))
count++;
else
break;
}
if (count > 0 && args.Session.AttachedEntity != null)
{