mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 03:39:55 +00:00
im stupid
This commit is contained in:
parent
e48946ea2e
commit
50aba7746f
@ -458,11 +458,6 @@ public class QSBGhostBrain : WorldObject<GhostBrain>, IGhostObject
|
|||||||
|
|
||||||
public void ChangeAction(QSBGhostAction action, bool remote = false)
|
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()}");
|
DebugLog.DebugWrite($"{AttachedObject._name} Change action to {action?.GetName()}");
|
||||||
|
|
||||||
if (_currentAction != null)
|
if (_currentAction != null)
|
||||||
@ -482,6 +477,11 @@ public class QSBGhostBrain : WorldObject<GhostBrain>, IGhostObject
|
|||||||
_data.OnEnterAction(_currentAction.GetName());
|
_data.OnEnterAction(_currentAction.GetName());
|
||||||
}
|
}
|
||||||
ClearPendingAction();
|
ClearPendingAction();
|
||||||
|
|
||||||
|
if (!remote)
|
||||||
|
{
|
||||||
|
this.SendMessage(new ChangeActionMessage(_data.currentAction));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ClearPendingAction()
|
public void ClearPendingAction()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user