]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed lighting a matchstick crashing the server (#14130)
authorDamianX <DamianX@users.noreply.github.com>
Wed, 15 Feb 2023 14:26:22 +0000 (15:26 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2023 14:26:22 +0000 (08:26 -0600)
Content.Server/Light/EntitySystems/MatchboxSystem.cs

index 171a74b5333fa1e90abd3407c4a921acd3f285da..b4c6f28eadf6bf446c00690604fe8f4e7c0e2d04 100644 (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;
             }
         }