Enable nullable in ReactionPrototype & ReagentPrototype (#3005)
* Enable nullable in ReactionPrototype & ReagentPrototype * Remove unecessary sets * Fix updates branch * Review fixes Co-authored-by: py01 <pyronetics01@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#nullable enable
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.GameObjects.EntitySystems;
|
||||
using Robust.Server.GameObjects.EntitySystems;
|
||||
@@ -11,7 +12,8 @@ namespace Content.Server.GameObjects.EntitySystems.NewFolder
|
||||
{
|
||||
base.OnReaction(reaction, owner, unitReactions);
|
||||
|
||||
Get<AudioSystem>().PlayAtCoords(reaction.Sound, owner.Transform.Coordinates);
|
||||
if (reaction.Sound != null)
|
||||
Get<AudioSystem>().PlayAtCoords(reaction.Sound, owner.Transform.Coordinates);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user