OnTriggerCollide Bug fix (#8467)
* ez gg dubskis * meteor * Update meteors.yml
This commit is contained in:
@@ -3,5 +3,7 @@ namespace Content.Server.Explosion.Components
|
||||
[RegisterComponent]
|
||||
public sealed class TriggerOnCollideComponent : Component
|
||||
{
|
||||
[DataField("fixtureID", required: true)]
|
||||
public string FixtureID = String.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,8 @@ namespace Content.Server.Explosion.EntitySystems
|
||||
|
||||
private void OnTriggerCollide(EntityUid uid, TriggerOnCollideComponent component, StartCollideEvent args)
|
||||
{
|
||||
Trigger(component.Owner);
|
||||
if(args.OurFixture.ID == component.FixtureID)
|
||||
Trigger(component.Owner);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user