TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DisableDecraft()

Recipe Terraria.Recipe.DisableDecraft ( )
inline

Sets a check that is used during load to prevent this being shimmered/decrafted.

Exceptions
T:Terraria.ModLoader.Exceptions.RecipeExceptionA Recipe can only be disabled inside Recipe related methods.

Definition at line 16434 of file Recipe.cs.

16435 {
16437 {
16438 throw new RecipeException("A Recipe can only be disabled inside Recipe related methods.");
16439 }
16440 notDecraftable = true;
16441 return this;
16442 }
static bool setupRecipes
Set when tML sets up modded recipes. Used to detect misuse of CreateRecipe.
This is where all Recipe hooks are gathered and called.
bool notDecraftable
Definition Recipe.cs:98

References Terraria.Recipe.notDecraftable, and Terraria.ModLoader.RecipeLoader.setupRecipes.