mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
vorepanel hotfix (#17760)
This commit is contained in:
@@ -93,11 +93,14 @@
|
||||
. = TRUE
|
||||
if("b_egg_name")
|
||||
var/new_egg_name = sanitize(params["val"], BELLIES_NAME_MAX, FALSE, TRUE, FALSE)
|
||||
host.vore_selected.egg_name = new_egg_name
|
||||
if(!new_egg_name)
|
||||
host.vore_selected.egg_name = null
|
||||
else
|
||||
host.vore_selected.egg_name = new_egg_name
|
||||
. = TRUE
|
||||
if("b_egg_size")
|
||||
var/new_egg_size = text2num(params["val"])
|
||||
if(isnum(new_egg_size))
|
||||
if(!isnum(new_egg_size))
|
||||
return FALSE
|
||||
if(new_egg_size == 0) //Disable.
|
||||
host.vore_selected.egg_size = 0
|
||||
|
||||
@@ -178,6 +178,7 @@
|
||||
"egg_type" = selected.egg_type,
|
||||
"egg_types" = GLOB.global_vore_egg_types,
|
||||
"egg_name" = selected.egg_name,
|
||||
"egg_name_length" = BELLIES_NAME_MAX,
|
||||
"egg_size" = selected.egg_size,
|
||||
"recycling" = selected.recycling,
|
||||
"storing_nutrition" = selected.storing_nutrition,
|
||||
|
||||
Reference in New Issue
Block a user