mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 06:38:56 +00:00
Load Scramble Seed key from Config
Remember all used Scramble seeds to unscramble potions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user