mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-27 19:37:46 +01:00
Fixes a crash with written/writable books.
The issue was with generating description message for written books without title or author. Fixes #318
This commit is contained in:
parent
01bd7b82bb
commit
550e348428
@ -868,8 +868,8 @@ public class Utils
|
||||
final String metaReference = Constants.ITEM_STACKS + "meta.";
|
||||
|
||||
String meta = user.getTranslationOrNothing(metaReference + "book-meta",
|
||||
"[title]", bookMeta.getTitle(),
|
||||
"[author]", bookMeta.getAuthor());
|
||||
"[title]", bookMeta.hasTitle() ? bookMeta.getTitle() : "",
|
||||
"[author]", bookMeta.hasAuthor() ? bookMeta.getAuthor() : "");
|
||||
|
||||
return user.getTranslationOrNothing(Constants.ITEM_STACKS + "generic",
|
||||
"[type]", prettifyObject(itemType, user),
|
||||
|
Loading…
Reference in New Issue
Block a user