Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modular_doppler/ships_r_us/code/order_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@

/obj/machinery/computer/personal_shuttle_order/ui_interact(mob/user, datum/tgui/ui)
. = ..()
if(!can_interact(user))
return
if(!our_docking_port)
Comment on lines 114 to 118
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all this shouldn't be on ui_interact(...) in the first place, given it's not a proper tgui window- and this proc would handling opening/updating it, not acting upon it
attack_hand(...) or interact(...) would probably serve better, probably the latter due to the can_interact(...) check involved
(note that admin ghosts get to in some cases bypass interact(...) limitations, which may matter in testing)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably also returning TRUE so it doesn't try to continue other hand stuff

balloon_alert(user, "no linked docking port")
return
Expand Down
Loading