Refactor slip dropping to use throwing (#5476)
* Refactor slip dropping to use throwing * Update Content.Server/Fluids/EntitySystems/SpillableSystem.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * Uncringe * Update Content.Server/Fluids/EntitySystems/SpillableSystem.cs Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
This commit is contained in:
@@ -17,15 +17,12 @@ namespace Content.Shared.Interaction
|
||||
|
||||
public class DroppedEventArgs : EventArgs
|
||||
{
|
||||
public DroppedEventArgs(IEntity user, bool intentional)
|
||||
public DroppedEventArgs(IEntity user)
|
||||
{
|
||||
User = user;
|
||||
Intentional = intentional;
|
||||
}
|
||||
|
||||
public IEntity User { get; }
|
||||
|
||||
public bool Intentional { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -44,16 +41,10 @@ namespace Content.Shared.Interaction
|
||||
/// </summary>
|
||||
public EntityUid DroppedUid { get; }
|
||||
|
||||
/// <summary>
|
||||
/// If the item was dropped intentionally.
|
||||
/// </summary>
|
||||
public bool Intentional { get; }
|
||||
|
||||
public DroppedEvent(EntityUid user, EntityUid dropped, bool intentional)
|
||||
public DroppedEvent(EntityUid user, EntityUid dropped)
|
||||
{
|
||||
UserUid = user;
|
||||
DroppedUid = dropped;
|
||||
Intentional = intentional;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user