V8 Engine fixes (#71033)

The V8 engine now allows you to learn the recipe and will no longer runtime when it checks if you already know it.
This commit is contained in:
lizardqueenlexi
2022-11-06 05:09:01 -06:00
committed by GitHub
parent 6f359afd90
commit 443879531d
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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)