Added & compatibility

This commit is contained in:
Quentin Legot 2020-06-02 12:02:10 +02:00
parent 9fe09ceebf
commit 74f125d32b

View File

@ -24,7 +24,7 @@ public class Book {
meta.setTitle(_title); meta.setTitle(_title);
meta.setAuthor(_author); meta.setAuthor(_author);
for(int i=0;i<_pages.size();i++) for(int i=0;i<_pages.size();i++)
meta.addPage(_pages.get(i)); meta.addPage(_pages.get(i).replace("&", "§"));
if(book.setItemMeta(meta)) if(book.setItemMeta(meta))
return true; return true;
return false; return false;