Fix dough rolling (#37183)

This commit is contained in:
themias 2025-05-06 12:57:05 -04:00 committed by GitHub
parent c5e8020bf0
commit ff03e7f066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ public sealed class SliceableFoodSystem : EntitySystem
if (args.Handled)
return;
if (!TryComp<UtensilComponent>(args.Used, out var utensil) || (utensil.Types & UtensilType.Knife) == 0)
return;
var doAfterArgs = new DoAfterArgs(EntityManager,
args.User,
entity.Comp.SliceTime,