Fixes SM getting energy when hit in space. (#1723)

This commit is contained in:
CitadelStationBot
2017-06-30 20:41:49 -05:00
committed by kevinz000
parent 4bacc78e26
commit 83da8141f4
@@ -426,7 +426,7 @@
/obj/machinery/power/supermatter_shard/bullet_act(obj/item/projectile/Proj)
var/turf/L = loc
if(!istype(L)) // We don't run process() when we are in space
if(!istype(L) || isspaceturf(L)) // We don't run process() when we are in space
return FALSE // This stops people from being able to really power up the supermatter
// Then bring it inside to explode instantly upon landing on a valid turf.
if(!istype(Proj.firer, /obj/machinery/power/emitter))