Skip to content

Commit

Permalink
chore: update to latest modonomicon
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 17, 2024
1 parent 64f50fc commit c3b7cbd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mod_description=An open-source magic mod built around classical alchemy to repli

jei_version=17.0.0.30
jei_version_range=[17.0.0.30,)
modonomicon_version=1.78.3
modonomicon_version=1.79.0
modonomicon_version_range=[1.76.0,)
almost_unified_version=0.5.0
almost_unified_version_range=[0.5.0,)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ public BookCategoryModel generate() {
throw new UnsupportedOperationException("This is a dummy provider to help generate entries, it should not be used to generate a Category.");
}

protected BookEntryModel entry() {
var entry = BookEntryModel.create(
this.modLoc(this.context().categoryId() + "/" + this.context().entryId()),
this.context().entryName()
)
.withDescription(this.context().entryDescription());

return entry;
}

protected BookEntryModel entry(char location) {
return this.entry().withLocation(this.entryMap().get(location));
}

public BookEntryModel aboutDivinationRods(char location) {
this.context().entry("about_divination_rods");
this.add(this.context().entryName(), "About Divination Rods");
Expand Down

0 comments on commit c3b7cbd

Please sign in to comment.