Skip to content

Commit

Permalink
charm compat
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Oct 2, 2023
1 parent 53c1c0d commit 8ec5a43
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
simply_backpacks | recommends | 1.4.9
improvedbackpacks | recommends | *
expandable-inventory | recommends | *
charm | recommends | *
java: |
8
retry-attempts: 2
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ dependencies {
compileOnly rfg.deobf('curse.maven:avaritiaddons-248873:4745387')
compileOnly rfg.deobf('curse.maven:wanionlib-253043:4623135')
compileOnly rfg.deobf('curse.maven:improvedbackpacks-270457:2918455')
implementation rfg.deobf('curse.maven:expandable_inventory-304371:2751939')
compileOnly rfg.deobf('curse.maven:expandable_inventory-304371:2751939')
compileOnly rfg.deobf('curse.maven:charm-318872:3146596')
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,12 @@ public static void init(IBogoSortAPI api) {
api.addCompat(ContainerExpandedInventory.class, (container, builder) -> {
});
}

if (Loader.isModLoaded("charm")) {
api.addCompat(svenhjol.charm.crafting.container.ContainerBarrel.class, (container, builder) -> {
builder.addSlotGroup(0, 27, 9);
});
}
}

private static ISlot avaritiaddons$findSlot(List<ISlot> slots, ItemStack itemStack, boolean emptyOnly) {
Expand Down

0 comments on commit 8ec5a43

Please sign in to comment.