Skip to content

Commit

Permalink
Merge pull request #323 from UchuServer/fix/build-interrupt
Browse files Browse the repository at this point in the history
Fix Interrupting Quickbuilds
  • Loading branch information
TheNexusAvenger authored Feb 9, 2022
2 parents 6edce7e + 90550b1 commit ee7a824
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,20 @@ public void StopRebuild(Player player, RebuildFailReason reason)
FailReason = reason,
Player = player
});

player.Message(new TerminateInteractionMessage
{
Associate = player,
Terminator = GameObject,
Type = TerminateType.FromInteraction,
});

Zone.BroadcastMessage(new TerminateInteractionMessage
{
Associate = GameObject,
Terminator = GameObject,
Type = TerminateType.FromInteraction,
});

State = RebuildState.Incomplete;
Enabled = true;
Expand Down

0 comments on commit ee7a824

Please sign in to comment.