Skip to content

Commit 3bc31d6

Browse files
committed
final edit for the final request
1 parent 2a6b04c commit 3bc31d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

EXILED/Exiled.Events/EventArgs/Scp079/RecontainingEventArgs.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public class RecontainingEventArgs : IDeniableEvent
2121
/// <param name="recontainer">The <see cref="BreakableWindow"/> instance.</param>
2222
public RecontainingEventArgs(BreakableWindow recontainer)
2323
{
24-
Recontainer = Player.Get(recontainer?.LastAttacker.Hub);
24+
Recontainer = Player.Get(recontainer.LastAttacker.Hub);
25+
IsAutomatic = recontainer.LastAttacker.IsSet;
2526
}
2627

2728
/// <summary>
@@ -36,6 +37,6 @@ public RecontainingEventArgs(BreakableWindow recontainer)
3637
/// <summary>
3738
/// Gets a value indicating whether or not the recontained has been made automatically or by triggering the proccess.
3839
/// </summary>
39-
public bool IsAutomatic => Recontainer is null;
40+
public bool IsAutomatic { get; }
4041
}
4142
}

0 commit comments

Comments
 (0)