Skip to content

Commit

Permalink
Fix inconsistent markers
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Mar 25, 2024
1 parent 7983817 commit ffb9451
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mod/Jailbreak.Warden/Global/WardenBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ private void UnmarkPrisonersBlue()
{
foreach (var player in _bluePrisoners)
{
if(!player.IsReal())
continue;
var pawn = player.Pawn.Value;
if (pawn == null)
continue;
Expand Down
3 changes: 2 additions & 1 deletion public/Jailbreak.Public/Mod/Draw/BeamLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public override void Draw()
public override void Remove()
{
KillTimer?.Kill();
_beam?.Remove();
if(_beam != null && _beam.IsValid)
_beam?.Remove();
_beam = null;
}

Expand Down

0 comments on commit ffb9451

Please sign in to comment.