Skip to content

Commit

Permalink
hotfix for thermite PR (ParadiseSS13#22110)
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBGERDO authored and Furrior committed Aug 25, 2023
1 parent 1e410bc commit 2b78ad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/turfs/simulated/walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@

/turf/simulated/wall/welder_act(mob/user, obj/item/I)
. = TRUE
if(reagents.get_reagent_amount("thermite") && I.use_tool(src, user, volume = I.tool_volume))
if(reagents?.get_reagent_amount("thermite") && I.use_tool(src, user, volume = I.tool_volume))
thermitemelt(user)
return
if(rotting)
Expand Down
2 changes: 1 addition & 1 deletion code/game/turfs/simulated/walls_reinforced.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
return ..()

/turf/simulated/wall/r_wall/welder_act(mob/user, obj/item/I)
if(reagents.get_reagent_amount("thermite") && I.use_tool(src, user, volume = I.tool_volume))
if(reagents?.get_reagent_amount("thermite") && I.use_tool(src, user, volume = I.tool_volume))
thermitemelt(user)
return TRUE
if(!(d_state in list(RWALL_COVER, RWALL_SUPPORT_RODS, RWALL_CUT_COVER)))
Expand Down

0 comments on commit 2b78ad2

Please sign in to comment.