Fixed lighting a matchstick crashing the server (#14130)

This commit is contained in:
DamianX
2023-02-15 15:26:22 +01:00
committed by GitHub
parent e96387c70d
commit 27ae6fcef9

View File

@@ -21,7 +21,7 @@ namespace Content.Server.Light.EntitySystems
&& EntityManager.TryGetComponent<MatchstickComponent?>(args.Used, out var matchstick)
&& matchstick.CurrentState == SmokableState.Unlit)
{
_stickSystem.Ignite(uid, matchstick, args.User);
_stickSystem.Ignite(args.Used, matchstick, args.User);
args.Handled = true;
}
}