Skip to content

Commit

Permalink
capabilties
Browse files Browse the repository at this point in the history
  • Loading branch information
Thepigcat76 committed Dec 15, 2024
1 parent 660f440 commit eb068a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/portingdeadmods/nautec/Nautec.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ private static void registerBECaps(RegisterCapabilitiesEvent event) {
if (containerBE.getFluidHandler() != null) {
event.registerBlockEntity(Capabilities.FluidHandler.BLOCK, be.get(), (blockEntity, dir) -> ((ContainerBlockEntity) blockEntity).getFluidHandlerOnSide(dir));
}

if (containerBE.getBacteriaStorage() != null){
event.registerBlockEntity(NTCapabilities.BacteriaStorage.BLOCK, be.get(), (blockEntity, ctx) -> ((ContainerBlockEntity) blockEntity).getBacteriaStorage());
}
}
}
}
Expand Down

0 comments on commit eb068a6

Please sign in to comment.