Make loading RGB colors easier

This commit is contained in:
Sn0wStorm
2019-08-17 22:42:58 +02:00
parent c39b35d82a
commit 9567feed81
7 changed files with 34 additions and 12 deletions
@@ -1137,11 +1137,19 @@ public class ConfigUpdater {
String[] lines = {"",
"# Wie viele Brewery Getränke in die Minecraft Fässer getan werden können [6]",
"maxBrewsInMCBarrels: 6"};
if (index == 0) {
if (index == -1) {
appendLines(lines);
} else {
addLines(index + 1, lines);
}
index = indexOfStart("# Benutzbare Farben");
if (index == -1) {
index = indexOfStart("# color:");
}
if (index != -1) {
addLines(index + 1, "# Oder RGB Farben (Hex: also zB '99FF33') (Ohne #) (mit '') (Einfach nach \"HTML color\" im Internet suchen)");
}
}
// Update en from 1.7 to 1.8
@@ -1164,11 +1172,19 @@ public class ConfigUpdater {
String[] lines = {"",
"# How many Brewery drinks can be put into the Minecraft barrels [6]",
"maxBrewsInMCBarrels: 6"};
if (index == 0) {
if (index == -1) {
appendLines(lines);
} else {
addLines(index + 1, lines);
}
index = indexOfStart("# Usable Colors");
if (index == -1) {
index = indexOfStart("# color:");
}
if (index != -1) {
addLines(index + 1, "# Or RGB colors (hex: for example '99FF33') (with '') (search for \"HTML color\" on the internet)");
}
}
// Update all Materials to Minecraft 1.13