Skip to content

Commit

Permalink
Fix c4 deletion runtime (#4947)
Browse files Browse the repository at this point in the history
# About the pull request
Nullchecks a forceMove
  • Loading branch information
Zonespace27 committed Nov 19, 2023
1 parent e1bb949 commit f544b82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items/explosives/plastic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/obj/item/explosive/plastic/Destroy()
disarm()
. = ..()
return ..()

/obj/item/explosive/plastic/explosion_throw(severity, direction, scatter_multiplier)
if(active)
Expand Down Expand Up @@ -156,7 +156,9 @@
plant_target.overlays -= overlay
qdel(overlay)
plant_target.contents -= src
forceMove(get_turf(plant_target))
var/turf/plant_turf = get_turf(plant_target)
if(plant_turf)
forceMove(plant_turf)
plant_target = null
if(customizable)
if(active) //deactivate
Expand Down

0 comments on commit f544b82

Please sign in to comment.