From 5be35dea005dc113de9ce24363a3480e9c21a9a9 Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 12 Sep 2018 21:05:25 +0200 Subject: [PATCH] Close #666 --- .../compat/botania/lexicon/AddEntry.java | 2 +- .../compat/botania/lexicon/UsefulEntry.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/blamejared/compat/botania/lexicon/UsefulEntry.java diff --git a/src/main/java/com/blamejared/compat/botania/lexicon/AddEntry.java b/src/main/java/com/blamejared/compat/botania/lexicon/AddEntry.java index e276bf6..0684ff3 100644 --- a/src/main/java/com/blamejared/compat/botania/lexicon/AddEntry.java +++ b/src/main/java/com/blamejared/compat/botania/lexicon/AddEntry.java @@ -28,7 +28,7 @@ public class AddEntry implements IAction { CraftTweakerAPI.getLogger().logError("Cannot find lexicon category " + catagory); return; } - LexiconEntry lexiconEntry = new LexiconEntry(entry, lexiconCategory); + LexiconEntry lexiconEntry = new UsefulEntry(entry, lexiconCategory); lexiconEntry.setIcon(toStack(stack)); BotaniaAPI.addEntry(lexiconEntry, lexiconEntry.category); } diff --git a/src/main/java/com/blamejared/compat/botania/lexicon/UsefulEntry.java b/src/main/java/com/blamejared/compat/botania/lexicon/UsefulEntry.java new file mode 100644 index 0000000..576fc08 --- /dev/null +++ b/src/main/java/com/blamejared/compat/botania/lexicon/UsefulEntry.java @@ -0,0 +1,15 @@ +package com.blamejared.compat.botania.lexicon; + +import vazkii.botania.api.lexicon.*; + +public class UsefulEntry extends LexiconEntry { + + public UsefulEntry(String unlocalizedName, LexiconCategory category) { + super(unlocalizedName, category); + } + + @Override + public String getTagline() { + return "botania.tagline." + super.getUnlocalizedName(); + } +}