mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-28 11:59:35 +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.";
|
final String metaReference = Constants.ITEM_STACKS + "meta.";
|
||||||
|
|
||||||
String meta = user.getTranslationOrNothing(metaReference + "book-meta",
|
String meta = user.getTranslationOrNothing(metaReference + "book-meta",
|
||||||
"[title]", bookMeta.getTitle(),
|
"[title]", bookMeta.hasTitle() ? bookMeta.getTitle() : "",
|
||||||
"[author]", bookMeta.getAuthor());
|
"[author]", bookMeta.hasAuthor() ? bookMeta.getAuthor() : "");
|
||||||
|
|
||||||
return user.getTranslationOrNothing(Constants.ITEM_STACKS + "generic",
|
return user.getTranslationOrNothing(Constants.ITEM_STACKS + "generic",
|
||||||
"[type]", prettifyObject(itemType, user),
|
"[type]", prettifyObject(itemType, user),
|
||||||
|
Loading…
Reference in New Issue
Block a user