mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
More Misc Sentry Fixes (#22496)
Sorting runtime errors by most events in the past 2 weeks, here's a few fixes for the following: https://aurorastation.sentry.io/issues/7472147004 - Runtime when someone attempts to move before their character is placed in the world. https://aurorastation.sentry.io/issues/7443212526 - Runtime when harvesting plants https://aurorastation.sentry.io/issues/7466716994 - Runtime when vampires try to drink a bloodbag https://aurorastation.sentry.io/issues/7496800530 - Runtime when a player disconnects while a tgui window is open.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
user = client.mob
|
||||
else
|
||||
return
|
||||
if (!user.client)
|
||||
return
|
||||
// Client does NOT have tgui_input on: Returns regular input
|
||||
if(!user.client.prefs.tgui_inputs)
|
||||
var/input_number = input(user, message, title, default) as null|num
|
||||
@@ -111,6 +113,9 @@
|
||||
return GLOB.always_state
|
||||
|
||||
/datum/tgui_input_number/ui_static_data(mob/user)
|
||||
if (!user.client)
|
||||
return list()
|
||||
|
||||
var/list/data = list()
|
||||
data["init_value"] = default // Default is a reserved keyword
|
||||
data["large_buttons"] = user.client.prefs.tgui_buttons_large
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
user = client.mob
|
||||
else
|
||||
return
|
||||
if (!user.client)
|
||||
return
|
||||
|
||||
// Client does NOT have tgui_input on: Returns regular input
|
||||
if(!user.client.prefs.tgui_inputs)
|
||||
if(encode)
|
||||
@@ -109,6 +112,9 @@
|
||||
return GLOB.always_state
|
||||
|
||||
/datum/tgui_input_text/ui_static_data(mob/user)
|
||||
if (!user.client)
|
||||
return list()
|
||||
|
||||
var/list/data = list()
|
||||
data["large_buttons"] = user.client.prefs.tgui_buttons_large
|
||||
data["swapped_buttons"] = user.client.prefs.tgui_inputs_swapped
|
||||
|
||||
Reference in New Issue
Block a user