Add single quotes

This commit is contained in:
DBotThePony 2022-11-09 18:12:39 +07:00
parent b66ce4a859
commit 59fe4dc0ea
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -80,7 +80,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
) : this(inputs.stream().map { it.stream() }, output, transformMatterValue, transformComplexity) ) : this(inputs.stream().map { it.stream() }, output, transformMatterValue, transformComplexity)
val formattedName: String val formattedName: String
get() = if (name == null) "One of recipes" else "Recipe $name" get() = if (name == null) "One of recipes" else "Recipe '$name'"
} }
fun interface Finder { fun interface Finder {
@ -287,7 +287,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
val ivalue = determineValue(input.item) val ivalue = determineValue(input.item)
if (ivalue.isMissing) { if (ivalue.isMissing) {
commentary[item] = TextComponent("Input ${input.item.registryName} at input slot $i in ${recipe.formattedName} has no matter value") commentary[item] = TextComponent("Input '${input.item.registryName}' at input slot $i in ${recipe.formattedName} has no matter value")
if (recipe.isCritical) { if (recipe.isCritical) {
return Result.MISSING return Result.MISSING
@ -295,7 +295,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
continue@recipesLoop continue@recipesLoop
} }
} else if (ivalue.isSkipped) { } else if (ivalue.isSkipped) {
commentary[item] = TextComponent("Input ${input.item.registryName} at input slot $i in ${recipe.formattedName} is recursive") commentary[item] = TextComponent("Input '${input.item.registryName}' at input slot $i in ${recipe.formattedName} is recursive")
return Result.SKIPPED return Result.SKIPPED
} }
@ -306,7 +306,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
} }
if (minimal == null || !minimal.hasMatterValue) { if (minimal == null || !minimal.hasMatterValue) {
commentary[item] = TextComponent("${recipe.formattedName} has invalid input at slot $i (possible inputs: ${inputs.joinToString(", ", transform = { it.item.registryName.toString() }) }) (???)") commentary[item] = TextComponent("'${recipe.formattedName}' has invalid input at slot $i (possible inputs: ${inputs.joinToString(", ", transform = { it.item.registryName.toString() }) }) (???)")
return Result.MISSING return Result.MISSING
} }
@ -336,7 +336,7 @@ object RecipeResolverManager : SimpleJsonResourceReloadListener(GsonBuilder().se
if (minimalMatter == null || minimalComplexity == null) { if (minimalMatter == null || minimalComplexity == null) {
if (item !in commentary) if (item !in commentary)
commentary[item] = TextComponent("${item.registryName} ended up with no valid recipes (???)") commentary[item] = TextComponent("'${item.registryName}' ended up with no valid recipes (???)")
return Result.MISSING return Result.MISSING
} }