Skip to content

Commit

Permalink
Fixes welders costing welding fuel for empty clicks (#23390)
Browse files Browse the repository at this point in the history
* Nice

* Yeah this is better
  • Loading branch information
DGamerL authored Dec 6, 2023
1 parent aa42de1 commit 7a53a3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/items/tools/welder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
. = ..()
if(!tool_enabled)
return
if(!proximity || isturf(target)) // We don't want to take away fuel when we hit something far away
return
remove_fuel(0.5)

/obj/item/weldingtool/use_tool(atom/target, user, delay, amount, volume, datum/callback/extra_checks)
Expand Down

0 comments on commit 7a53a3e

Please sign in to comment.