From: DamianX Date: Wed, 15 Feb 2023 14:26:22 +0000 (+0100) Subject: Fixed lighting a matchstick crashing the server (#14130) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=27ae6fcef9cf13018b7d9804c49a30398fadabdb;p=space-station-14.git Fixed lighting a matchstick crashing the server (#14130) --- diff --git a/Content.Server/Light/EntitySystems/MatchboxSystem.cs b/Content.Server/Light/EntitySystems/MatchboxSystem.cs index 171a74b533..b4c6f28ead 100644 --- a/Content.Server/Light/EntitySystems/MatchboxSystem.cs +++ b/Content.Server/Light/EntitySystems/MatchboxSystem.cs @@ -21,7 +21,7 @@ namespace Content.Server.Light.EntitySystems && EntityManager.TryGetComponent(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; } }