Load Scramble Seed key from Config

Remember all used Scramble seeds to unscramble potions
This commit is contained in:
Sn0wStorm
2019-10-18 16:30:03 +02:00
parent 437f521a9b
commit f431c13100
25 changed files with 327 additions and 69 deletions
+8 -1
View File
@@ -179,7 +179,7 @@ public class BrewLore {
// Removes all effects
public void removeEffects() {
if (meta.hasCustomEffects()) {
for (PotionEffect effect : meta.getCustomEffects()) {
for (PotionEffect effect : new ArrayList<>(meta.getCustomEffects())) {
PotionEffectType type = effect.getType();
//if (!type.equals(PotionEffectType.REGENERATION)) {
meta.removeCustomEffect(type);
@@ -188,6 +188,13 @@ public class BrewLore {
}
}
public void removeLegacySpacing() {
if (lore.size() > 0 && lore.get(0).equals("")) {
lore.remove(0);
write();
}
}
// True if the PotionMeta has Lore in quality color
public static boolean hasColorLore(PotionMeta meta) {
if (!meta.hasLore()) return false;