Fixed lighting a matchstick crashing the server (#14130)
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Content.Server.Light.EntitySystems
|
|||||||
&& EntityManager.TryGetComponent<MatchstickComponent?>(args.Used, out var matchstick)
|
&& EntityManager.TryGetComponent<MatchstickComponent?>(args.Used, out var matchstick)
|
||||||
&& matchstick.CurrentState == SmokableState.Unlit)
|
&& matchstick.CurrentState == SmokableState.Unlit)
|
||||||
{
|
{
|
||||||
_stickSystem.Ignite(uid, matchstick, args.User);
|
_stickSystem.Ignite(args.Used, matchstick, args.User);
|
||||||
args.Handled = true;
|
args.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user