im stupid

This commit is contained in:
JohnCorby 2022-04-09 23:56:55 -07:00
parent e48946ea2e
commit 50aba7746f

View File

@ -458,11 +458,6 @@ public class QSBGhostBrain : WorldObject<GhostBrain>, IGhostObject
public void ChangeAction(QSBGhostAction action, bool remote = false)
{
if (!remote)
{
this.SendMessage(new ChangeActionMessage(_data.currentAction));
}
DebugLog.DebugWrite($"{AttachedObject._name} Change action to {action?.GetName()}");
if (_currentAction != null)
@ -482,6 +477,11 @@ public class QSBGhostBrain : WorldObject<GhostBrain>, IGhostObject
_data.OnEnterAction(_currentAction.GetName());
}
ClearPendingAction();
if (!remote)
{
this.SendMessage(new ChangeActionMessage(_data.currentAction));
}
}
public void ClearPendingAction()