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:
VMSolidus
2026-05-26 17:57:49 +00:00
committed by GitHub
parent 9b8ebf7e4a
commit df807b33c4
6 changed files with 21 additions and 3 deletions
+5
View File
@@ -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
+6
View File
@@ -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