ForgeGradle icon indicating copy to clipboard operation
ForgeGradle copied to clipboard

Cache downloads for MCP functions.

Open LexManos opened this issue 4 years ago • 0 comments

In Forge dev, we setup MCP three times, Client/Server/Joined. Each has a download task. downloadClient downloadServer And Joined downloads both.

The downloaded files are cached in the mcp folder for that specific side. Causing it to download the client and server twice.

This also effects setting up a differtn MCP version, for the same MC version.

We need to setup some form of higher level cache for use in these functions. Just to save downloading.

https://github.com/MinecraftForge/ForgeGradle/blob/097dd2a7145a3a4384ffa77876a55fe0b46b6551/src/mcp/java/net/minecraftforge/gradle/mcp/function/AbstractDownloadMCFunction.java

LexManos avatar Aug 07 '19 18:08 LexManos