[MIRROR] Adds a crash report to the imprint_gps proc and removes an unnecessary arg in law.dm (#28781)

* Adds a crash report to the imprint_gps proc and removes an unnecessary arg in law.dm (#84818)

## About The Pull Request
As the title says
## Why It's Good For The Game
if someone's using the proc and fucks up they might be able to tell
easier
## Changelog
🆑
code: added a crash report and removes an arg
/🆑

* Adds a crash report to the imprint_gps proc and removes an unnecessary arg in law.dm

---------

Co-authored-by: Odairu <mdesisto510@gmail.com>
This commit is contained in:
SkyratBot
2024-07-11 19:45:54 +05:30
committed by GitHub
co-authored by Odairu
parent b2f2cee4d0
commit d0d1e6ca1e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@
return
for(var/obj/item/circuitboard/computer/board in src.contents)
if(!contents || board.GetComponent(/datum/component/gps))
return
CRASH("[src] Called imprint_gps without setting gps_tag")
board.AddComponent(/datum/component/gps, "[tracker]")
balloon_alert_to_viewers("board tracker enabled", vision_distance = 1)
+1 -1
View File
@@ -28,7 +28,7 @@
current = null
return
M.install(current.laws, user)
imprint_gps(gps_tag = "Weak Upload Signal")
imprint_gps("Weak Upload Signal")
else
return ..()