Skip to content

Commit

Permalink
fix botania lexicon not being added (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly authored Jul 3, 2024
1 parent f44b4d9 commit 245e31b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public class Botania extends GroovyPropertyContainer {
public final Magnet magnet = new Magnet();
public final Flowers flowers = new Flowers();

public Botania() {
addProperty(lexicon.category);
addProperty(lexicon.entry);
addProperty(lexicon.page);
}

public static LexiconCategory getCategory(String name) {
for (LexiconCategory category : BotaniaAPI.getAllCategories())
if (category.getUnlocalizedName().equals(name)) return category;
Expand Down

0 comments on commit 245e31b

Please sign in to comment.