This commit is contained in:
Jared 2018-09-12 21:05:25 +02:00
parent c6a08761ab
commit 5be35dea00
2 changed files with 16 additions and 1 deletions

View file

@ -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);
}

View file

@ -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();
}
}