diff --git a/code/datums/components/crafting/crafting.dm b/code/datums/components/crafting/crafting.dm index f59b10e79b5..d6213f2b32d 100644 --- a/code/datums/components/crafting/crafting.dm +++ b/code/datums/components/crafting/crafting.dm @@ -504,7 +504,7 @@ /datum/mind/proc/has_crafting_recipe(mob/user, potential_recipe) if(!learned_recipes) return FALSE - if(!istype(potential_recipe, /datum/crafting_recipe)) + if(!ispath(potential_recipe, /datum/crafting_recipe)) CRASH("Non-crafting recipe passed to has_crafting_recipe") for(var/recipe in user.mind.learned_recipes) if(recipe == potential_recipe) diff --git a/code/game/objects/items/v8_engine.dm b/code/game/objects/items/v8_engine.dm index 6f4e309a431..e4a6da57117 100644 --- a/code/game/objects/items/v8_engine.dm +++ b/code/game/objects/items/v8_engine.dm @@ -33,14 +33,13 @@ INVOKE_ASYNC(src, .proc/start_learning_recipe, user) /obj/item/v8_engine/proc/start_learning_recipe(mob/user) - var/datum/crafting_recipe/house_edge/edge if(!user.mind) return - if(user.mind.has_crafting_recipe(user = user, potential_recipe = edge)) + if(user.mind.has_crafting_recipe(user = user, potential_recipe = /datum/crafting_recipe/house_edge)) return to_chat(user, span_notice("You peer at the label on the side, reading about some unique modifications that could be made to the engine...")) if(do_after(user, 15 SECONDS, src)) - user.mind.teach_crafting_recipe(edge) + user.mind.teach_crafting_recipe(/datum/crafting_recipe/house_edge) to_chat(user, span_notice("You learned how to make the House Edge."))