Skip to content

Commit

Permalink
Add missing Fabric transfer API registration for MEGA Interface
Browse files Browse the repository at this point in the history
Fixes #114
  • Loading branch information
62832 committed Apr 2, 2024
1 parent 64a144a commit 6b40e9b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ public class MEGACellsFabric implements IAEAddonEntrypoint {
@Override
public void onAe2Initialized() {
MEGACells.initCommon();
initPatternProviderTransfer();
initTransfers();
}

@SuppressWarnings("UnstableApiUsage")
private void initPatternProviderTransfer() {
private void initTransfers() {
GenericInternalInventory.SIDED.registerForBlockEntity(
(be, context) -> be.getInterfaceLogic().getStorage(), MEGABlockEntities.MEGA_INTERFACE);
GenericInternalInventory.SIDED.registerForBlockEntity(
(be, context) -> be.getLogic().getReturnInv(), MEGABlockEntities.MEGA_PATTERN_PROVIDER);
}
Expand Down

0 comments on commit 6b40e9b

Please sign in to comment.