mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:45:10 +01:00
Merge pull request #3661 from swwind/patch-1
fix typo: wrong chance shown in jei when chance < 0.01
This commit is contained in:
commit
e2f1d260aa
@ -157,7 +157,7 @@ public class SequencedAssemblyCategory extends CreateRecipeCategory<SequencedAss
|
|||||||
if (!singleOutput && mouseX >= minX && mouseX < maxX && mouseY >= minY && mouseY < maxY) {
|
if (!singleOutput && mouseX >= minX && mouseX < maxX && mouseY >= minY && mouseY < maxY) {
|
||||||
float chance = recipe.getOutputChance();
|
float chance = recipe.getOutputChance();
|
||||||
tooltip.add(junk);
|
tooltip.add(junk);
|
||||||
tooltip.add(Lang.translateDirect("recipe.processing.chance", chance < 0.01 ? "<1" : 100 - (int) (chance * 100))
|
tooltip.add(Lang.translateDirect("recipe.processing.chance", chance < 0.01 ? ">99" : 100 - (int) (chance * 100))
|
||||||
.withStyle(ChatFormatting.GOLD));
|
.withStyle(ChatFormatting.GOLD));
|
||||||
return tooltip;
|
return tooltip;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user