Close #666
This commit is contained in:
parent
c6a08761ab
commit
5be35dea00
2 changed files with 16 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue