Skip to content
Merged
Show file tree
Hide file tree
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 code/modules/reagents/machinery/dispenser/dispenser2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
container = null
. = TRUE

/* PY edit - Remove chemistry import files
if("import_config")
if(import_job && (ui.user.mind.assigned_role != import_job))
to_chat(ui.user, span_warning("This option is only available to the job: [import_job]"))
Expand All @@ -219,6 +220,7 @@
if(length(new_recipes))
saved_recipes = new_recipes
. = TRUE
*/

if("record_recipe")
recording_recipe = list()
Expand Down
2 changes: 2 additions & 0 deletions code/modules/reagents/reagent_containers/borghypo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@
saved_recipes -= recipe_name
. = TRUE

/* PY edit - Remove chemistry import files
if("select_recipe")
// Make sure we actually have a recipe saved with the given name before setting it!
var/recipe_name = params["recipe"]
Expand All @@ -327,6 +328,7 @@
is_dispensing_recipe = TRUE
selected_recipe_id = recipe_name
. = TRUE
*/

if("set_chemical_search")
ui_chemical_search = params["uiChemicalSearch"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Box, Button, Section, Stack } from 'tgui-core/components';
import type { BooleanLike } from 'tgui-core/react';
import { handleImportData } from '../PlushieEditor/function';
import { exportRecipes } from './functions';
import type { Recipe } from './types';

export const ChemDispenserRecipes = (props: {
Expand Down Expand Up @@ -69,6 +67,7 @@ export const ChemDispenserRecipes = (props: {
)}
{!isRecording && (
<>
{/* PY edit - Remove chemistry import files
<Stack.Item>
<Button.File
accept=".json"
Expand All @@ -85,6 +84,7 @@ export const ChemDispenserRecipes = (props: {
onClick={() => exportRecipes(recipes)}
/>
</Stack.Item>
*/}
<Stack.Item>
<Button.Confirm
icon="trash"
Expand Down
Loading