mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 08:59:01 +00:00
Added more default recipes + small fixes
BStats shows that >75% of users don't add any recipes themselves. So even if I would have preferred not to, i've added more default recipes to make it easier for everyone +Fixed Brew Create with space in name +Changed look of Quality Stars (now with half-stars) +Fixed Cauldron Recipe with Multiple Ingredients
This commit is contained in:
@@ -225,16 +225,23 @@ public class BrewLore {
|
||||
return;
|
||||
}
|
||||
if (!brew.isUnlabeled() && brew.getQuality() > 0 && (qualityColor || BConfig.alwaysShowQuality)) {
|
||||
int stars = (brew.getQuality() + 1) / 2;
|
||||
StringBuilder b = new StringBuilder(stars);
|
||||
for (; stars > 0; stars--) {
|
||||
b.append("⭑");
|
||||
}
|
||||
int stars = (brew.getQuality()) / 2;
|
||||
boolean half = (brew.getQuality()) % 2 > 0;
|
||||
StringBuilder b = new StringBuilder(24);
|
||||
String color;
|
||||
if (qualityColor) {
|
||||
color = getQualityColor(brew.getQuality());
|
||||
} else {
|
||||
color = brew.getQuality() >= 10 ? "§6" : "§8";
|
||||
color = "§7";
|
||||
}
|
||||
for (; stars > 0; stars--) {
|
||||
b.append("⭑");
|
||||
}
|
||||
if (half) {
|
||||
if (!qualityColor) {
|
||||
b.append("§8");
|
||||
}
|
||||
b.append("⭒");
|
||||
}
|
||||
addOrReplaceLore(Type.STARS, color, b.toString());
|
||||
} else {
|
||||
@@ -480,10 +487,10 @@ public class BrewLore {
|
||||
* Type of Lore Line
|
||||
*/
|
||||
public enum Type {
|
||||
STARS("§s"),
|
||||
CUSTOM("§t"),
|
||||
SPACE("§u"),
|
||||
|
||||
STARS("§s"),
|
||||
INGR("§v"),
|
||||
COOK("§w"),
|
||||
DISTILL("§x"),
|
||||
|
||||
Reference in New Issue
Block a user