Comment on derived recipe
This commit is contained in:
parent
114c8adbe6
commit
3e6cab943f
@ -401,6 +401,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
|
||||
}
|
||||
|
||||
var hadSkips = false
|
||||
var minimalRecipe: ResolvedRecipe? = null
|
||||
|
||||
recipesLoop@ for (recipe in recipes) {
|
||||
if (recipe.inputs.isEmpty()) {
|
||||
@ -466,6 +467,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
|
||||
if (minimalMatter == null || minimalMatter > accumulatedMatter) {
|
||||
minimalMatter = recipe.transformMatterValue(accumulatedMatter * recipe.output.multiplier)
|
||||
minimalComplexity = recipe.transformComplexity(accumulatedComplexity * recipe.output.multiplier)
|
||||
minimalRecipe = recipe
|
||||
}
|
||||
}
|
||||
|
||||
@ -490,7 +492,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
|
||||
|
||||
changes = true
|
||||
determinedValues[item] = result
|
||||
commentary.remove(item)
|
||||
commentary[item] = TextComponent("Matter value derived from ${minimalRecipe!!.formattedName}")
|
||||
|
||||
return Result(result)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user