refueling lit welder explosion fix (#23469)

* refueling lit welder explosion fix

* add DamgeOnToolInteract to wall dispenser

(cherry picked from commit 0235b196dc456c0afdf3c3e5b47dad9009ad6686)
This commit is contained in:
themias 2024-01-03 16:23:36 -05:00 committed by Debug
parent 3fd75367f4
commit 4dc1cd99a7
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
2 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,7 @@ namespace Content.Server.Damage.Systems
if (args.Handled)
return;
if (!TryComp<ItemToggleComponent>(uid, out var itemToggle))
if (!TryComp<ItemToggleComponent>(args.Used, out var itemToggle))
return;
if (component.WeldingDamage is {} weldingDamage

View File

@ -81,3 +81,9 @@
Quantity: 1000
- type: ReagentTank
tankType: Fuel
- type: DamageOnToolInteract
tools:
- Welding
weldingDamage:
types:
Heat: 20