mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 06:38:56 +00:00
Implemented NBT Saving
1.13: CustomItemTagContainer 1.14: PersistentDataContainer
This commit is contained in:
@@ -189,12 +189,24 @@ public class BrewLore {
|
||||
}
|
||||
|
||||
public void removeLegacySpacing() {
|
||||
if (P.useNBT) {
|
||||
// Using NBT we don't get the invisible line, so we keep our spacing
|
||||
return;
|
||||
}
|
||||
if (lore.size() > 0 && lore.get(0).equals("")) {
|
||||
lore.remove(0);
|
||||
write();
|
||||
}
|
||||
}
|
||||
|
||||
public void removeLoreData() {
|
||||
int index = BUtil.indexOfStart(lore, LoreSaveStream.IDENTIFIER);
|
||||
if (index != -1) {
|
||||
lore.set(index, "");
|
||||
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