Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Sep 16, 2024
1 parent b5cf769 commit d9c3170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class PotionRecipeEditorGui(recipe: BRecipe, val opener: Player) : AbstractGui()
}

ItemType.EDITOR_ALCOHOL -> {
recipe.alcohol = message.toIntOrNull() ?: return
recipe.alcohol = message.replace("%", "").trim().toIntOrNull() ?: return
}

ItemType.EDITOR_INGREDIENTS -> {
Expand All @@ -297,7 +297,7 @@ class PotionRecipeEditorGui(recipe: BRecipe, val opener: Player) : AbstractGui()
}

ItemType.EDITOR_COLOR -> {
recipe.color = PotionColor.fromString(message)
recipe.color = PotionColor.fromString(message.uppercase())
}

ItemType.EDITOR_DRINK_MESSAGE -> {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/dev/jsinco/brewery/guis/util/BRecipeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ object BRecipeUtil {
listOf(
//"", // space
"&#E59FE3Difficulty&7: &f${recipe.difficulty}",
"&#E59FE3Cook Time&7: &f${recipe.cookingTime}",
"&#E59FE3Cook Time&7: &f${recipe.cookingTime}m",
"&#E59FE3Distill Runs&7: &f${recipe.distillRuns}",
"&#E59FE3Distill Time&7: &f${recipe.distillTime}",
"&#E59FE3Distill Time&7: &f${recipe.distillTime}s",
"&#E59FE3Barrel Type&7: &f${woodTypeToString(recipe.wood.toInt())}",
"&#E59FE3Aging Amount&7: &f${recipe.age.toInt()}",
"&#E59FE3Alcohol&7: &f${recipe.alcohol}",
"&#E59FE3Alcohol&7: &f${recipe.alcohol}%",
"&#E59FE3Glint&7: &f${recipe.hasGlint()}",
)
)
Expand Down

0 comments on commit d9c3170

Please sign in to comment.