mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Prevents readying up in invalid state (#20240)
* prevents readying up in invalid state * return * lets you cancel but not ready up
This commit is contained in:
@@ -156,6 +156,11 @@
|
||||
if(client.version_blocked)
|
||||
client.show_update_notice()
|
||||
return FALSE
|
||||
if(!ready && !client.prefs.active_character.check_any_job() && (client.prefs.active_character.alternate_option == RETURN_TO_LOBBY))
|
||||
to_chat(usr, "<span class='danger'>You have no jobs enabled, along with return to lobby if job is unavailable. This makes you ineligible for any round start role, please update your job preferences.</span>")
|
||||
ready = FALSE
|
||||
return FALSE
|
||||
|
||||
ready = !ready
|
||||
new_player_panel_proc()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user