Refactors smoking to ECS, smoking actually makes you inhale reagents. (#4678)
This commit is contained in:
committed by
GitHub
parent
0767bd3777
commit
f913d8361d
@@ -17,7 +17,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
{
|
||||
if (!args.Handled
|
||||
&& args.Used.TryGetComponent<MatchstickComponent>(out var matchstick)
|
||||
&& matchstick.CurrentState == SharedBurningStates.Unlit)
|
||||
&& matchstick.CurrentState == SmokableState.Unlit)
|
||||
{
|
||||
Get<MatchstickSystem>().Ignite(matchstick, args.User);
|
||||
args.Handled = true;
|
||||
|
||||
Reference in New Issue
Block a user