Fixes blast door controllers not working correctly (#78929)

I made a mistake, blast door controllers assume numbers and
unfortunately i can't just change that too due to assumption we do not
want players to link to premapped ids.

Fixes #78902
This commit is contained in:
AnturK
2023-10-12 10:53:25 -06:00
committed by GitHub
parent 09e0cd4f1a
commit ff4a5aef19
+1 -1
View File
@@ -49,7 +49,7 @@
return
if (deconstruction != BLASTDOOR_FINISHED)
return
var/change_id = tgui_input_text(user, "Set the door controllers ID", "Door Controller ID", id, 100)
var/change_id = tgui_input_number(user, "Set the door controllers ID (Current: [id])", "Door Controller ID", isnum(id) ? id : null, 100)
if(!change_id || QDELETED(usr) || QDELETED(src) || !usr.can_perform_action(src, FORBID_TELEKINESIS_REACH))
return
id = change_id