Fix NPC door prying (#15605)

This commit is contained in:
metalgearsloth
2023-04-21 15:05:29 +10:00
committed by GitHub
parent 2744ef81d8
commit e780c6a98a
7 changed files with 40 additions and 15 deletions

View File

@@ -356,7 +356,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
if (doAfter.Cancelled)
return DoAfterStatus.Cancelled;
if (GameTiming.CurTime - doAfter.StartTime < doAfter.Args.Delay)
if (!doAfter.Completed)
return DoAfterStatus.Running;
// Theres the chance here that the DoAfter hasn't actually finished yet if the system's update hasn't run yet.