Fixes the runtime warning where secbots from spawning in null space

This commit is contained in:
joep van der velden
2020-07-31 10:42:27 +02:00
parent 91d679f2ed
commit 7e35fc9660
@@ -474,7 +474,7 @@
return
build_step++
to_chat(user, "<span class='notice'>You complete the Securitron! Beep boop.</span>")
var/mob/living/simple_animal/bot/secbot/S = new /mob/living/simple_animal/bot/secbot
var/mob/living/simple_animal/bot/secbot/S = new /mob/living/simple_animal/bot/secbot(loc)
S.forceMove(get_turf(src))
S.name = created_name
S.robot_arm = robot_arm
@@ -512,7 +512,7 @@
//General Griefsky
else if((istype(I, /obj/item/wrench)) && (build_step == 3))
var/obj/item/griefsky_assembly/A = new /obj/item/griefsky_assembly
var/obj/item/griefsky_assembly/A = new /obj/item/griefsky_assembly(loc)
user.put_in_hands(A)
to_chat(user, "<span class='notice'>You adjust the arm slots for extra weapons!.</span>")
user.unEquip(src, 1)